Skip to content
Snippets Groups Projects
Commit 475b7f44 authored by Patrick Palka's avatar Patrick Palka
Browse files

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.
parent 35ade856
No related branches found
No related tags found
Loading
// PR c++/63378
// { dg-do compile { target c++11 } }
template<class T1, class S1>
struct B { };
template<class T1>
struct A {
private:
template<class T2, class S2>
static B<T2, S2> g();
public:
template<class S2>
auto f() -> decltype(g<T1, S2>());
};
template<>
template<>
auto A<int>::f<float>() -> B<int, float>;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment