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++/52763] Warning if compare between enum and non-enum type


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


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