This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52763] Warning if compare between enum and non-enum type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Apr 2012 13:56:46 +0000
- Subject: [Bug c++/52763] Warning if compare between enum and non-enum type
- Auto-submitted: auto-generated
- References: <bug-52763-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Target|x86_64 |
Host|Fedora 16 |
Build|20120306 |
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-04 13:56:46 UTC ---
But what about cases such as (val1 == (ONE|TWO)) ?
(ONE|TWO) is of type 'int' but that code is correct and shouldn't warn