https://gcc.gnu.org/g:7cf85d137ba8f83a54438f53f557225485c3f695

commit r15-3869-g7cf85d137ba8f83a54438f53f557225485c3f695
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Sep 25 16:08:33 2024 +0200

    c++: Add testcase for DR 2874
    
    Seems we already allow the partial specializations the way the DR clarifies,
    so this patch just adds a testcase which verifies that.
    
    2024-09-25  Jakub Jelinek  <ja...@redhat.com>
    
            * g++.dg/DRs/dr2874.C: New test.

Diff:
---
 gcc/testsuite/g++.dg/DRs/dr2874.C | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gcc/testsuite/g++.dg/DRs/dr2874.C 
b/gcc/testsuite/g++.dg/DRs/dr2874.C
new file mode 100644
index 000000000000..10981291c0ec
--- /dev/null
+++ b/gcc/testsuite/g++.dg/DRs/dr2874.C
@@ -0,0 +1,13 @@
+// DR 2874 - Qualified declarations of partial specializations
+// { dg-do compile { target c++11 } }
+
+namespace N {
+  template <typename T>
+  struct A;
+}
+
+template <>
+struct N::A <int>;
+
+template <typename T>
+struct N::A <T *>;

Reply via email to