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 unsuppressible enum comparison warning
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 11:06:20 +0000
- Subject: [Bug c++/53524] [4.7/4.8 Regression] Bogus and unsuppressible 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
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr@integrable-solutions.ne
| |t
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-30 11:06:20 UTC ---
Let's add in CC Gaby, in the testsuite I see the warning triggering outside
templates for a testcase coming from a bug report of him,
g++.old-deja/g++.other/cond5.C, we have:
enum E1 {e1 = -1};
enum E2 {e2 = -1};
int j;
j = (i ? e1 : e2); // { dg-warning "mismatch" }
Shall we not warn by default? Shall we give the warning a name (which?) and add
it to -Wall? To -Wextra? Neither?