PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / operator5.C
blobb90b0fd912e7842d784abf1662fdfffcb8db1648
1 // PR c++/50858
3 class String {
4    typedef struct ImplicitConversionFromWTFStringToBoolDisallowedA* 
5    (String::*UnspecifiedBoolTypeA);
6    typedef struct ImplicitConversionFromWTFStringToBoolDisallowedB* 
7    (String::*UnspecifiedBoolTypeB);
8    operator UnspecifiedBoolTypeA() const;
9    operator UnspecifiedBoolTypeB() const;
11 inline bool equalIgnoringCase(const String& a, const String& b) { return true; }
12 inline bool equalPossiblyIgnoringCase(const String& a, 
13                                       const String& b,
14                                       bool ignoreCase) {
15   return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" }
16 // { dg-message "note" "note" { target *-*-* } .-1 }