blob: bbb6c7b3a2bdc4e7d04dae1759f6006943415c5f [file] [log] [blame]
// PR c++/18436
void foo(int);
struct A
{
static void foo(A);
};
template <typename T> struct B : T
{
B() { foo(T()); } // { dg-error "cannot convert" }
};
B<A> b;