I study Fortran on the book "Chapman: Fortran 95/2003 for Scientists and Engineers, Third Edition". Chapter 6 (about arrays) says that in Fortran compilers, you can turn on checking for overrun of an array:
If you’re on the road, you’ll find out. It can be turned down.
I checked it on my compiler (GNU Fortran Compller) - I have the option to check for overrunning an array off.
What you need to click, which console to run, in order to enter control commands for off / on. compiler options? (in particular, you need to enable the option to check the output of the array in the compiler)
I use the environment Code Blocks + MinGw (GNU Fortran Compller).

