diff options
author | Simon Martin <simon@nasilyan.com> | 2024-08-23 10:49:31 +0200 |
---|---|---|
committer | Simon Martin <simon@nasilyan.com> | 2024-08-24 18:41:42 +0200 |
commit | 1d09ccc4a5fe7c9a3dd37fcef34c1523a5c95819 (patch) | |
tree | b59b3c296c4873b604c4db0042a792b7a7321986 | |
parent | ac826d2f5b1fcd6c9356d5c77a1a0ef927ae2701 (diff) | |
download | gcc-trunk.zip gcc-trunk.tar.gz gcc-trunk.tar.bz2 |
The case in PR113746 used to ICE until commit r15-123-gf04dc89a991ddc.
This patch simply adds the case to the testsuite.
PR c++/113746
gcc/testsuite/ChangeLog:
* g++.dg/parse/crash76.C: New test.
-rw-r--r-- | gcc/testsuite/g++.dg/parse/crash76.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/crash76.C b/gcc/testsuite/g++.dg/parse/crash76.C new file mode 100644 index 0000000..6fbd1fa --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/crash76.C @@ -0,0 +1,6 @@ +// PR c++/113746 +// { dg-do compile } + +template<typename_T> struct S { // { dg-error "not been declared" } + enum { e0 = 0, e00 = e0 }; +}; |