c++: add fixed testcase [PR63378]
[official-gcc.git] / gcc / testsuite / g++.dg / template / fnspec3.C
blobc36cb17751d3981550c4eaf48f60ce171ab46cee
1 // PR c++/63378
2 // { dg-do compile { target c++11 } }
4 template<class T1, class S1>
5 struct B { };
7 template<class T1>
8 struct A {
9 private:
10   template<class T2, class S2>
11   static B<T2, S2> g();
13 public:
14   template<class S2>
15   auto f() -> decltype(g<T1, S2>());
18 template<>
19 template<>
20 auto A<int>::f<float>() -> B<int, float>;