------- Comment #15 from fxcoudert at gcc dot gnu dot org 2006-03-01 16:42
-------
(In reply to comment #12)
> What about the testcase from comment #4? I believe that's valid.
I agree. The segfault in the original code is OK, but the "Attempt to allocate
a negative amount of memory" error message on your code:
dimension a(1:4), b(1)
i=1
b = maxloc(a(1:i-2)+1.)
end
is not OK. a(1:i-2) should be a zero-sized array slice.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-11-01 21:45:02 |2006-03-01 16:42:35
date| |
Summary|runtime error "Attempt to |runtime error "Attempt to
|allocate a negative amount |allocate a negative amount
|of memory" |of memory"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15335