From: Jakub Jelinek Date: Wed, 25 Sep 2024 14:08:33 +0000 (+0200) Subject: c++: Add testcase for DR 2874 X-Git-Tag: basepoints/gcc-16~5684 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cf85d137ba8f83a54438f53f557225485c3f695;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/g++.dg/DRs/dr2874.C b/gcc/testsuite/g++.dg/DRs/dr2874.C new file mode 100644 index 00000000000..10981291c0e --- /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 ;