From 7cf85d137ba8f83a54438f53f557225485c3f695 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 25 Sep 2024 16:08:33 +0200 Subject: [PATCH] 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 * g++.dg/DRs/dr2874.C: New test. --- gcc/testsuite/g++.dg/DRs/dr2874.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/DRs/dr2874.C 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 + struct A; +} + +template <> +struct N::A ; + +template +struct N::A ; -- 2.47.2