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++/53524] [4.7/4.8 Regression] Bogus and unsupressable enum comparison warning


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53524

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-30 01:53:24 UTC ---
>Further, the warning doesn't get suppressed even under -Wno-enum-compare.

That is because it is not a compare; it is a conditional expression.

Also I think the warning is correct but not for a weird reason.  The type of
enum values are not finalized until after the enum is closed.


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