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

Thomas Koenig tkoenig@netcologne.de
Wed Jun 26 15:31:00 GMT 2013


Hi Tobias,

> 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?

OK.

Thanks a lot for the patch!

	Thomas



More information about the Gcc-patches mailing list