Debian Codegraph @

gcc/testsuite/g++.dg/template/call3.C

raw
1 // PR c++/18436
2
3 void foo(int);
4
5 struct A
6 {
7 static void foo(A);
8 };
9
10 template <typename T> struct B : T
11 {
12 B() { foo(T()); } // { dg-error "cannot convert" }
13 };
14
15 B<A> b;