[Bug c/60439] No warning for case overflow in switch statement.

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 11 17:45:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60439

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
         Resolution|FIXED                       |---
   Target Milestone|---                         |4.10.0

--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Ah, sorry about that.  I wonder where the Var(warn_switch_bool) disappeared.
In the particular testcase you posted I agree we shouldn't warn, but I think we
should warn in case there is the default label.  I have no problem with moving
the warning to -Wall.  I'll prepare a patch tomorrow.



More information about the Gcc-bugs mailing list