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