1 // { dg-do assemble } 2 // PRMS Id: 7128 3 4 class B {}; 5 6 class D : public B {}; 7 8 class X { 9 public: 10 operator const B & () const; 11 operator const D & () const; 12 }; 13 14 void f( const D & ); 15 g(const X & x)16 void g( const X & x ) 17 { 18 f( x ); 19 } 20