[Bug fortran/28494] Unclear run time error message

tobias dot burnus at physik dot fu-berlin dot de gcc-bugzilla@gcc.gnu.org
Wed Sep 20 08:27:00 GMT 2006



------- Comment #2 from tobias dot burnus at physik dot fu-berlin dot de  2006-09-20 08:27 -------
I looked what other are writing:
----------------
gfortran:
Fortran runtime error: Array reference out of bounds for array 'r', upper bound
of dimension 1 exceeded (in file 'array2.f90', at line 4)

NAG f95:
Subscript 1 of R (value 5) is out of range (1:4)

Intel Fortran Compiler ifort:
forrtl: severe (408): fort: (2): Subscript #1 of the array R has value 5 which
is greater than the upper bound of 4

Sun f95:
 ******  FORTRAN RUN-TIME SYSTEM  ******
Subscript out of range. Location:  line 4 column 5 of 'array2.f90'
Subscript number 1 has value 5 in array 'R'
----------------

Personal favourite would be:

Fortran runtime error: Array reference out of bounds. Subscript 1 of array 'r'
(value 5) exceeds upper bound of 4 (in file 'array2.f90', at line 4)"

The place to change would be trans-array.c. I looked at it, but I fail to
extract a asprintf-able number from the "tree"s index etc.


-- 

tobias dot burnus at physik dot fu-berlin dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobias dot burnus at physik
                   |                            |dot fu-berlin dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28494



More information about the Gcc-bugs mailing list