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.

[EMAIL PROTECTED]> gfortran --version
GNU Fortran (GCC) 4.3.0 20071023 (experimental) [trunk revision 129569]
Copyright (C) 2007 Free Software Foundation, Inc.

[EMAIL PROTECTED]> gfortran bug071024.f90
[EMAIL PROTECTED]> 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

Reply via email to