[Patch, Fortran] PR57721 - improve out-of-bounds error message for components

Tobias Burnus burnus@net-b.de
Wed Jun 26 13:14:00 GMT 2013


The patch changes the out-of-bounds message for "k==11"
   z(i)%y(j)%x(k)=0
from:
   Fortran runtime error: Index '11' of dimension 1 of array 'z' above 
upper bound of 10
to
   Fortran runtime error: Index '11' of dimension 1 of array 'z%y%x' 
above upper bound of 10

(For j out of bounds, it would show "z%y" and for i out of bounds "z".)

Build and regtested on x86-64-gnu-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bound-comp.diff
Type: text/x-patch
Size: 4837 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130626/fc7d6032/attachment.bin>


More information about the Fortran mailing list