1// { dg-do assemble } 2// PRMS Id: 8805 3// Bug: The two-level conversion is not found when calling a global fn. 4 5class Int { 6public: 7 Int(int A); 8}; 9 10class Ding { 11public: 12 Ding(Int A); 13}; 14 15class Something { 16public: 17 void DoSomething(Ding A); // { dg-message "candidate is" } referred to 18}; 19 20void DoSomething(Ding A); 21 22void foo(Something* pX) 23{ 24 DoSomething(1); // { dg-error "conversion" } 25 pX->DoSomething(1); // { dg-error "no matching" } 26 (*pX).DoSomething(1); // { dg-error "no matching" } 27} 28