public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rbuergel at web dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/38064] New: [c++0x] operator== doesn't work for enum classes Date: Sun, 09 Nov 2008 04:04:00 -0000 [thread overview] Message-ID: <bug-38064-15404@http.gcc.gnu.org/bugzilla/> (raw) enum class E { elem }; int main() { E e = E::elem; if (e == E::elem); return 1; } g++ -std=c++0x tc1.cpp tc1.cpp: In function 'int main()': tc1.cpp:6: error: invalid operands of types 'E' and 'E' to binary 'operator==' -- Summary: [c++0x] operator== doesn't work for enum classes Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rbuergel at web dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38064
next reply other threads:[~2008-11-09 4:04 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-09 4:04 rbuergel at web dot de [this message] 2008-11-09 4:12 ` [Bug c++/38064] " rbuergel at web dot de 2008-11-09 4:23 ` rbuergel at web dot de 2009-01-26 10:48 ` piotr dot wyderski at gmail dot com 2009-05-18 22:12 ` paolo dot carlini at oracle dot com 2009-05-25 15:15 ` steven at gcc dot gnu dot org 2009-05-25 16:12 ` paolo dot carlini at oracle dot com 2009-05-25 16:45 ` jason at gcc dot gnu dot org 2009-05-25 18:32 ` ian at airs dot com 2009-05-25 23:01 ` jason at gcc dot gnu dot org 2009-05-25 23:07 ` jason at gcc dot gnu dot org 2009-05-25 23:12 ` jason at gcc dot gnu dot org 2009-08-10 21:38 ` pinskia at gcc dot gnu dot org 2009-08-10 21:38 ` pinskia at gcc dot gnu dot org 2010-04-26 11:23 ` redi at gcc dot gnu dot org 2010-04-26 17:50 ` pinskia at gcc dot gnu dot org 2010-04-26 23:07 ` redi at gcc dot gnu dot org 2010-05-04 19:01 ` jason at gcc dot gnu dot org 2010-05-04 19:03 ` jason at gcc dot gnu dot org 2010-05-04 19:04 ` jason at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-38064-15404@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).