3 // Per 13.3.1.2/3 bullet 2, an operator function is not a candidate
4 // for overload resolution if neither argument is of class type and
5 // neither enumerator-typed argument gets an exact match, with or
6 // without reference binding, for the corresponding parameter.
14 bool operator==(const A&, const A&);
15 const A& operator*(const A&);
19 bool b1 = (e == ""); // { dg-error "no match" }
21 bool b2 = (A(1) == "");
23 bool b3 = (e == A(1));
25 const A& a1 = *e; // { dg-error "no match" }