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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-04-01
                 CC|                            |mpolacek at gcc dot gnu.org
          Component|c                           |middle-end
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
It adds the default case at the end of the switch so we can jump over the whole
switch body.  But it should do so only if the labels cover the whole range of
the controlling expression of the switch.  Here the switch label seemingly
covers the whole range of the enum, but TYPE_MAX_VALUE of the enum E is
UINT_MAX, while the high value of the case label is 0.

Reply via email to