aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload7.C
blob: 361150569c9183d5ef7c024e3fc08d55f3edc299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Bug: g++ thinks there is a default conversion from A& to B*.
//      There isn't.
// Build don't link:

struct A {
  operator A* ();
};

struct B: public A { };

void foo (B* bp);

void bar (A& a) {
  foo (a);			// ERROR - 
}