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