This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66264] New: [untaken optimization] switch & enums without default-case
- From: "jk3064 at arcor dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 May 2015 17:58:47 +0000
- Subject: [Bug c++/66264] New: [untaken optimization] switch & enums without default-case
- Auto-submitted: auto-generated
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.