Debian Codegraph @

gcc/testsuite/g++.dg/template/non-dependent20.C

raw
1 // PR c++/104432
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 struct A {
6 template<class=int> static void f(T);
7 static void f();
8 };
9
10 template<class> struct B : A<int>, A<int&> {
11 using A<int>::f;
12 using A<int&>::f;
13 void g() { f(0); }
14 };
15
16 template struct B<int>;