[Bug c++/66264] New: [untaken optimization] switch & enums without default-case

jk3064 at arcor dot de gcc-bugzilla@gcc.gnu.org
Sat May 23 17:58:00 GMT 2015


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

            Bug ID: 66264
           Summary: [untaken optimization] switch & enums without
                    default-case
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jk3064 at arcor dot de
  Target Milestone: ---

example:
https://goo.gl/UFYF6G

Even when the switch() contains all enums, it won't use a lookuptable when no
default-case is given.



More information about the Gcc-bugs mailing list