From: Patrick Palka Date: Fri, 21 Mar 2025 19:23:49 +0000 (-0400) Subject: c++: add fixed test [PR119378] X-Git-Tag: basepoints/gcc-16~898 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ed38b98456725f042e75fde7da16c60e22c08d8;p=thirdparty%2Fgcc.git c++: add fixed test [PR119378] Fixed by r15-123 (specifically the change to set processing_template_decl when tsubsting UNBOUND_CLASS_TEMPLATE). PR c++/119378 gcc/testsuite/ChangeLog: * g++.dg/template/friend85.C: New test. --- diff --git a/gcc/testsuite/g++.dg/template/friend85.C b/gcc/testsuite/g++.dg/template/friend85.C new file mode 100644 index 00000000000..5cf83911193 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/friend85.C @@ -0,0 +1,16 @@ +// PR c++/119378 + +template +struct A { + template + struct B; +}; + +template +struct C { + template + template + friend class A::B; +}; + +template struct C;