public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-72] c++: Add testcase for already fixed PR [PR77435]
@ 2021-04-22 21:50 Patrick Palka
0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-04-22 21:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:92664c058d705fcaf57875f93b4dfc36cf011afd
commit r12-72-g92664c058d705fcaf57875f93b4dfc36cf011afd
Author: Patrick Palka <ppalka@redhat.com>
Date: Thu Apr 22 17:47:00 2021 -0400
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:
---
gcc/testsuite/g++.dg/template/partial-specialization9.C | 7 +++++++
1 file changed, 7 insertions(+)
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 00000000000..49f3500b180
--- /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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-22 21:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 21:50 [gcc r12-72] c++: Add testcase for already fixed PR [PR77435] Patrick Palka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).