[Bug c++/52763] New: Warning if compare between enum and non-enum type

2012-03-29 Thread gccrepo...@gmx-topmail.de
Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: gccrepo...@gmx-topmail.de Hi, the following program doesn't create a warning. It would be nice to get an warning each time a enumeration type is compared to a non enumeration type, be

[Bug c++/52763] Warning if compare between enum and non-enum type

2012-04-04 Thread gccrepo...@gmx-topmail.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763 Mikka changed: What|Removed |Added Target||x86_64 Host|

[Bug c++/52763] Warning if compare between enum and non-enum type

2012-04-04 Thread gccrepo...@gmx-topmail.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763 --- Comment #3 from Mikka 2012-04-04 14:22:45 UTC --- (In reply to comment #2) > But what about cases such as (val1 == (ONE|TWO)) ? > > (ONE|TWO) is of type 'int' but that code is correct and shouldn't warn In my opinion, there should be a warn

[Bug c++/52763] Warning if compare between enum and non-enum type

2012-04-16 Thread gccrepo...@gmx-topmail.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763 --- Comment #5 from Mikka 2012-04-16 11:01:25 UTC --- (In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > But what about cases such as (val1 == (ONE|TWO)) ? > > > > > > (ONE|TWO) is of type 'int' but that code