blob: e29a7c16b916fe4ff45850286297233968cc9dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Bug: g++ thinks there is a conversion from void * to B *.
// Build don't link:
struct A {
operator void* ();
};
struct B: public A { };
void bar (A& a) {
B* bp = (B*)a; // ERROR -
}
|