This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53524

--- Comment #21 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-06-04 20:31:04 UTC ---
Author: paolo
Date: Mon Jun  4 20:30:59 2012
New Revision: 188207

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188207
Log:
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53524
    * doc/invoke.texi (Wenum-compare): Update documentation.

/cp
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53524
    * call.c (build_conditional_expr_1): Use OPT_Wenum_compare
    to control enumeral mismatch in conditional expression too.

/testsuite
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53524
    * g++.dg/warn/Wenum-compare-no-2: New.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/warn/Wenum-compare-no-2.C
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/call.c
    branches/gcc-4_7-branch/gcc/doc/invoke.texi
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]