http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53524
--- Comment #11 from Lawrence Crowl <crowl at google dot com> 2012-05-30
17:42:14 UTC ---
(In reply to comment #7)
> 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?
I believe this testcase is different and the warning is correct.