[Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Oct 7 23:44:00 GMT 2004
------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-07 23:44 -------
New testcase (I changed memory.c to allow zero-length allocations):
dimension a(1:4), b(1)
i=1
b = maxloc(a(1:i-2)+1.)
end
gives the new error message:
Fortran runtime error: Attempt to allocate a negative amount of memory.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|runtime error "Attempt to |runtime error "Attempt to
|allocate a non-positive |allocate a negative amount
|amount of memory" |of memory"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15335
More information about the Gcc-bugs
mailing list