blob: 9769d4ab730c13c6ddc1113eff2047f1711f023c [file] [log] [blame]
//PR c++/29022
struct A
{
operator int();
};
struct B : virtual A, A<0> {}; // { dg-error "token" }
int foo(B &b)
{
return b; // { dg-error "cannot convert" }
}