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