------- Comment #2 from kargl at gcc dot gnu dot org 2007-10-31 04:08 ------- First, your program is not a valid Fortran program, so gfortran can do whatever it wants with the code. Second, add -fbounds-check to your compiler options.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33954