https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Yes, but code generation incorrect. It's not runtime yet. The criterion is as follows: does the code invoke undefined behavior when executed in the abstract machine specified by the C standard? If so, then the compiler is allowed to generate object code that does anything, including playing some music or erasing the hard drive; here it generates an infinite loop and that's OK.