Parallel Programming Guide for HP-UX Systems

Troubleshooting
Invalid subscripts
Chapter 9186
Invalid subscripts
An array reference in which any subscript falls outside declared bounds
for that dimension is called an invalid subscript. Invalid subscripts are a
common cause of answers that vary between optimization levels and
programs that abort and result in a core dump.
Use the command-line option -C (check subscripts) with f90 to check
that each subscript is within its array bounds. See the f90(1) man page
for more information. The C and aC++ compilers do not have an option
corresponding to the Fortran compiler’s -C option.