From 92664c058d705fcaf57875f93b4dfc36cf011afd Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Thu, 22 Apr 2021 17:47:00 -0400 Subject: [PATCH] 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. --- gcc/testsuite/g++.dg/template/partial-specialization9.C | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/partial-specialization9.C 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 0000000..49f3500 --- /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 -- 2.7.4