https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100227
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #3 from anlauf at gcc dot gnu.org --- Reduced testcase: program p implicit none integer, parameter :: nbmode = 3 integer :: k real :: mass(nbmode*2) do k = 1, nbmode*2 mass(k) = k end do print *, (mass(k+k), k=1,nbmode) end program Also valgrind shows that bad things happen with -ffrontend-optimize ...