[Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
paul dot richard dot thomas at cea dot fr
gcc-bugzilla@gcc.gnu.org
Thu Nov 18 13:22:00 GMT 2004
------- Additional Comments From paul dot richard dot thomas at cea dot fr 2004-11-18 13:22 -------
This example gives a segmentation fault with Cygwin and gfortran 20041114
> integer:: p(4)
Initialising p(4) = (/1,2,3,4/) gets rid of the fault and the programme runs to
completion. I do not think that this is entirely the same as #18539, which
seems to be specific to Tru64 (and Linux?)
Note that with p initialised, DRIVER still segment faults on Tru64 because i is
unitialised (this should also fail under Cygwin.....). If, I set I to 1, for
example, then, finally I get the request for negative memory.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15335
More information about the Gcc-bugs
mailing list