//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" }
}


syntax highlighted by Code2HTML, v. 0.9.1