FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload1.C
blobe29a7c16b916fe4ff45850286297233968cc9dc4
1 // Bug: g++ thinks there is a conversion from void * to B *.
2 // Build don't link:
4 struct A {
5   operator void* ();
6 };
8 struct B: public A { };
10 void bar (A& a) {
11   B* bp = (B*)a;                // ERROR -