https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111278
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |82738 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh -O0 will also fail. I suspect this case will just be declared as not to be fixed. the type for the switch is still int but the range is [0,7] and we don't do as much optimizations for -Og. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82738 [Bug 82738] [meta-bug] issues with the -Og optimization level