http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60121
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this is expected. out of bounds warnings come not from the front-end but the middle-end and are designed not to warn about in dead code. This code is dead as a != 0 is always false.