https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107696
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- > int i; > int a[1]; > for (; i < 1;){ This depends on the uninitialized value of 'i', which is: (gdb) p i $1 = 32767 if I run it with -O0 on my local machine. You can try -ftrivial-auto-var-init=zero.