From: Simon Martin Date: Fri, 23 Aug 2024 08:49:31 +0000 (+0200) Subject: c++: Add testcase for (now fixed) regression [PR113746] X-Git-Tag: basepoints/gcc-16~6408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d09ccc4a5fe7c9a3dd37fcef34c1523a5c95819;p=thirdparty%2Fgcc.git c++: Add testcase for (now fixed) regression [PR113746] 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. --- diff --git a/gcc/testsuite/g++.dg/parse/crash76.C b/gcc/testsuite/g++.dg/parse/crash76.C new file mode 100644 index 00000000000..6fbd1fa9f7e --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/crash76.C @@ -0,0 +1,6 @@ +// PR c++/113746 +// { dg-do compile } + +template struct S { // { dg-error "not been declared" } + enum { e0 = 0, e00 = e0 }; +};