1 2 3 4 5 6 7 8 9 10 11 12 13
//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" } }