This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2004 13:22:27 -0000
- Subject: [Bug fortran/15335] runtime error "Attempt to allocate a negative amount of memory"
- References: <20040507002755.15335.Tobias.Schlueter@physik.uni-muenchen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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