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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52763
Mikka changed:
What|Removed |Added
Target||x86_64
Host|
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
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