[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
Mon Apr 18 21:32:00 GMT 2005
------- Additional Comments From tobi at gcc dot gnu dot org 2005-04-18 21:32 -------
(In reply to comment #7)
> Using the testcase from comment #4, it seems clear that there is no check on
> whether the slice selected has negative width...
Yes, I remember that I suggested behaving the same way for the allocation of a
negative amount of memory in internal_malloc as for a zero allocation. I don't
remember if this failed (say, e.g. because the scalarizer still creates a loop
which does something silly then), or if I didn't do this, because I believed
(maybe because someone told me so) that it wouldn't work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15335
More information about the Gcc-bugs
mailing list