This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53524] [4.7/4.8 Regression] Bogus and unsupressable enum comparison warning
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 01:53:24 +0000
- Subject: [Bug c++/53524] [4.7/4.8 Regression] Bogus and unsupressable enum comparison warning
- Auto-submitted: auto-generated
- References: <bug-53524-4@http.gcc.gnu.org/bugzilla/>
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.