[Bug c++/53524] [4.7/4.8 Regression] Bogus and unsupressable enum comparison warning

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 30 02:25:00 GMT 2012


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.



More information about the Gcc-bugs mailing list