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++/66264] New: [untaken optimization] switch & enums without default-case


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.


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