[Bug fortran/33881] New: allocate negative memory
william dot mitchell at nist dot gov
gcc-bugzilla@gcc.gnu.org
Wed Oct 24 14:09:00 GMT 2007
With this program I get a runtime error message
Fortran runtime error: Attempt to allocate a negative amount of memory.
The error occurs at line 33. I suspect the "allocation" is the constant array
actual argument (/name/).
This program is a little longer than I like my bug reports to be, but any
attempt to shorten it changes the error to a segmentation fault, except for
removing the print statement in the main program which results in the program
running correctly.
mitchell@speedy> gfortran --version
GNU Fortran (GCC) 4.3.0 20071023 (experimental) [trunk revision 129569]
Copyright (C) 2007 Free Software Foundation, Inc.
mitchell@speedy> gfortran bug071024.f90
mitchell@speedy> a.out
something
Fortran runtime error: Attempt to allocate a negative amount of memory.
--
Summary: allocate negative memory
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: william dot mitchell at nist dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33881
More information about the Gcc-bugs
mailing list