From: Patrick Palka Date: Thu, 22 Apr 2021 21:47:00 +0000 (-0400) Subject: c++: Add testcase for already fixed PR [PR77435] X-Git-Tag: basepoints/gcc-13~8241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92664c058d705fcaf57875f93b4dfc36cf011afd;p=thirdparty%2Fgcc.git c++: Add testcase for already fixed PR [PR77435] We correctly accept this testcase since r8-1437. gcc/testsuite/ChangeLog: PR c++/77435 * g++.dg/template/partial-specialization9.C: New test. --- diff --git a/gcc/testsuite/g++.dg/template/partial-specialization9.C b/gcc/testsuite/g++.dg/template/partial-specialization9.C new file mode 100644 index 000000000000..49f3500b180a --- /dev/null +++ b/gcc/testsuite/g++.dg/template/partial-specialization9.C @@ -0,0 +1,7 @@ +// PR c++/77435 + +template struct S; +template struct S<0, T, A> {}; +int i; +S<0, int*, &i> r; // OK +S<0, int&, i> s; // error: aggregate 'S<0, int&, i> s' has incomplete type