[Bug c++/53524] [4.7/4.8 Regression] Bogus and unsuppressible enum comparison warning
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed May 30 11:14:00 GMT 2012
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?
More information about the Gcc-bugs
mailing list