[Bug fortran/21375] New: Rising run-time errors at DEALLOCATE with STAT clause

naf at naf dot net dot ru gcc-bugzilla@gcc.gnu.org
Wed May 4 05:55:00 GMT 2005


When errors happens in DEALLOCATE with STAT the run-time error rises instead
setting up STAT variable. For example, following code:

-----------------------------
PROGRAM MAIN
INTEGER, POINTER :: foo
INTEGER IERR
DEALLOCATE(foo,STAT=IERR)
WRITE (*,*) IERR
END PROGRAM
-----------------------------

fails with 'Fortran runtime error: Internal: Attempt to DEALLOCATE unallocated
memory.' instead of setting IERR.

This bug corresponds with #17792.

-- 
           Summary: Rising run-time errors at DEALLOCATE with STAT clause
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: naf at naf dot net dot ru
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21375



More information about the Gcc-bugs mailing list