This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]