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: Reversion when compiling Molcas


Ignacio Fernández Galván wrote:
===================================================
At line 14 of file initim.f
Fortran runtime error: Array reference out of bounds for array 'work',
upper bound of dimension 1 exceeded, 110103560 is greater than 8

I have no idea whether this is related to the non-bounds-checked crash, but... the error combined with the code (which I've cut out) looks like something that was brought up on comp.lang.fortran in the last couple of days, where a C malloc is used as a pre-F90 way of doing allocated memory, and this memory is then accessed as an offset from a single "work" array of dimension 1 that only serves as a dummy to provide a reference location for subsequent allocations.



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