[Bug c++/17805] too liberal operator lookup

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 4 17:37:00 GMT 2004


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-04 17:37 -------
Here's a reduced version:

=======================================
struct A
{
    A(int);
    A(const char*);
};

bool operator==(const A&, const A&);

enum E { e };

bool b = (e == "");
=======================================

Btw, icc rejects it.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17805



More information about the Gcc-bugs mailing list