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.