aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-04-22 17:47:00 -0400
committerPatrick Palka <ppalka@redhat.com>2021-04-22 17:47:00 -0400
commit92664c058d705fcaf57875f93b4dfc36cf011afd (patch)
treeab81943bde24177b5f322a714d6927c657dc9656 /gcc
parent244dfb95119106e9267f37583caac565c39eb0ec (diff)
downloadgcc-92664c058d705fcaf57875f93b4dfc36cf011afd.zip
gcc-92664c058d705fcaf57875f93b4dfc36cf011afd.tar.gz
gcc-92664c058d705fcaf57875f93b4dfc36cf011afd.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/template/partial-specialization9.C7
1 files changed, 7 insertions, 0 deletions
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<int, class T, T> struct S;
+template<class T, T A> 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