blob: 2aa27ae7bdeb7ff4c95c73374d6bada0194a8b61 [file] [log] [blame]
// { dg-do assemble }
// Bug: g++ thinks there is a conversion from void * to B *.
struct A {
operator void* ();
};
struct B: public A { };
void bar (A& a) {
B* bp = (B*)a; // { dg-error "11:invalid cast" }
}