From: Patrick Palka Date: Thu, 11 May 2023 14:38:02 +0000 (-0400) Subject: c++: Add testcase for already fixed PR [PR103807] X-Git-Tag: basepoints/gcc-15~9429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0c467d216bf538faa7ceb75875e4efa73ae23f;p=thirdparty%2Fgcc.git c++: Add testcase for already fixed PR [PR103807] We accept this testcase since r13-806-g221acd67ca50f8. PR c++/103807 gcc/testsuite/ChangeLog: * g++.dg/cpp2a/lambda-targ1.C: New test. --- diff --git a/gcc/testsuite/g++.dg/cpp2a/lambda-targ1.C b/gcc/testsuite/g++.dg/cpp2a/lambda-targ1.C new file mode 100644 index 000000000000..07fa6f9bc194 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/lambda-targ1.C @@ -0,0 +1,11 @@ +// PR c++/103807 +// { dg-do compile { target c++20 } } + +template +struct A { }; + +A x; + +int main() { + A y; +}