1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do assemble } // Bug: g++ thinks there is a default conversion from void* to B*. // There isn't. struct A { operator void* (); }; struct B { }; void foo (B* bp); void bar (A& a) { foo (a); // { dg-error "" } }