[Bug c++/41425] switch with enums doesn't work

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 21 13:08:00 GMT 2009



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-09-21 13:08 -------
Switch assembly is optimized if you handle all valid cases (which you do) into
if (i != 0)
  case B
else
  case A


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425



More information about the Gcc-bugs mailing list