gcc/testsuite/g++.dg/template/non-dependent19a.C
raw| 1 | // PR c++/104432 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // A variant of non-dependent19.C where A is a template. |
| 4 | |
| 5 | template<class> |
| 6 | struct A { |
| 7 | template<class=int> void f(); |
| 8 | void f(int); |
| 9 | }; |
| 10 | |
| 11 | template<class> struct B : A<int> { |
| 12 | using A<int>::f; |
| 13 | void g() { f(); } |
| 14 | }; |
| 15 | |
| 16 | template struct B<int>; |