1 // [over.match.conv]: For direct-initialization, those explicit conversion
2 // functions that are not hidden within S and yield type T or a type that
3 // can be converted to type T with a qualification conversion (4.4) are
4 // also candidate functions.
6 // { dg-options -std=c++0x }
11 explicit operator B*(); // { dg-message "explicit" }
12 explicit operator B&(); // { dg-message "explicit" }
16 A* ap (c); // { dg-error "" }
17 A& ar (c); // { dg-error "" }