This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21375] New: Rising run-time errors at DEALLOCATE with STAT clause
- From: "naf at naf dot net dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2005 05:55:01 -0000
- Subject: [Bug fortran/21375] New: Rising run-time errors at DEALLOCATE with STAT clause
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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