https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78408
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Aggressive optimization of |C loop initial declarations |zeroing results in |generate wrong code |incorrect behavior | --- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- This has nothing to do with "aggressive optimization" it is a bug in C front-end, I guess in the "loop initial declarations" implementation.