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: [gfortran,patch] Improve error messages for bounds-checking and a few other cases


Could you also state which exect index was used (and maybe the
maximal/minimal allowed index)? In some more complicated programs it
helps to find the error. This is what other compilers are doing:
NAG: Subscript 2 of X (value 2) is out of range (1:1)
Ifort: Subscript #2 of the array X has value 2 which is greater than the
upper bound of 1

I'm thinking about doing that, yes. In fact, I almost settled down on a way to implement that feature, but it has low priority and will do it once I have fixed the last bugs remaining with -fbounds-check.

FX


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