https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114086
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- mov eax, edi and eax, 1 ret seems wrong without -fstrict-enums, one could call test_switch(static_cast <E> (9)) and it should return false in that case.