This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/38064] [c++0x] operator== doesn't work for enum classes



------- Comment #1 from rbuergel at web dot de  2008-11-09 04:11 -------
extended testcase, this fails for other operators, too

enum class E { elem };

int main()
{
        E::elem == E::elem;
        E::elem != E::elem;
        E::elem <  E::elem;
        E::elem <= E::elem;
        E::elem >  E::elem;
        E::elem >= E::elem;
        return 1;
}

Or am i missing something from the proposal? Maybe i have to define every
operator i want to use for every enum?


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]