From: Patrick Palka Date: Mon, 11 Dec 2023 16:59:33 +0000 (-0500) Subject: c++: add fixed testcase [PR63378] X-Git-Tag: basepoints/gcc-15~3717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475b7f44c640c03f968d66dae389ea6165b4b5c2;p=thirdparty%2Fgcc.git c++: add fixed testcase [PR63378] We accept this testcase since r12-4453-g79802c5dcc043a. PR c++/63378 gcc/testsuite/ChangeLog: * g++.dg/template/fnspec3.C: New test. --- diff --git a/gcc/testsuite/g++.dg/template/fnspec3.C b/gcc/testsuite/g++.dg/template/fnspec3.C new file mode 100644 index 000000000000..c36cb17751d3 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/fnspec3.C @@ -0,0 +1,20 @@ +// PR c++/63378 +// { dg-do compile { target c++11 } } + +template +struct B { }; + +template +struct A { +private: + template + static B g(); + +public: + template + auto f() -> decltype(g()); +}; + +template<> +template<> +auto A::f() -> B;