1// { dg-do assemble } 2// PRMS Id: 6568 3// Bug: g++ complains about the ambiguous conversion to bool even though 4// we wouldn't end up using it anyway. 5 6class AString 7{ 8public: 9 AString (unsigned len); 10 operator char *() const; 11 operator char const *() const; 12}; 13 14void 15foo(unsigned t, AString const & handle) 16{ 17} 18 19void 20foo(AString const & handle, bool includeSpecials) 21{ 22 unsigned t; 23 foo(t, handle); 24} 25