https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61775
--- Comment #2 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #1) > Whatever the issue was, it appears to be fixed in HEAD. > > troutmask:sgk[205] gfc4x -o z h.f90 > troutmask:sgk[206] ./z > 10000.0000 > troutmask:sgk[207] gfc49 -o z h.f90 > troutmask:sgk[208] ./z > > Program received signal SIGSEGV: Segmentation fault - invalid memory > reference. I take it back. It is broken with optimizations. troutmask:sgk[213] gfc4x -o z -O -fcheck=all h.f90 && ./z At line 6 of file h.f90 Fortran runtime error: Index '10000' of dimension 1 of array 'x' above upper bound of 1 Segmentation fault (core dumped)