http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59264
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > but it gets executed correctly for 1st condition why not for 2nd and 3rd Both executions are correct since the code has undefined behavior.