public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35718]  New: deallocating non-allocated pointer target does not fail
@ 2008-03-27 16:01 dick dot hendrickson at gmail dot com
  2008-03-27 16:50 ` [Bug fortran/35718] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2008-03-27 16:01 UTC (permalink / raw)
  To: gcc-bugs

The following program fails to raise an error condition in the deallocate
statement.  The pointer target was not created by an allocate.

Dick Hendrickson

      program MF0069
! fails on Windows XP
! gcc version 4.4.0 20080312 (experimental) [trunk revision 133139]
! F95 page 83, line 34 says deallocating a pointer whose target
!wasn't created by an ALLOCATE causes error condition


      REAL, pointer  :: RLA(:)
      REAL, TARGET   :: RLA1(6)
      RLA1 = 0
      RLA => RLA1
      DEALLOCATE (RLA, STAT = ISTAT)
      IF (ISTAT .LE. 0) print *, 'deallocate did not fail!', istat
      END


-- 
           Summary: deallocating non-allocated pointer target does not fail
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-06 10:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27 16:01 [Bug fortran/35718] New: deallocating non-allocated pointer target does not fail dick dot hendrickson at gmail dot com
2008-03-27 16:50 ` [Bug fortran/35718] " burnus at gcc dot gnu dot org
2008-04-13 20:59 ` tkoenig at gcc dot gnu dot org
2008-08-08 21:14 ` jv244 at cam dot ac dot uk
2008-09-28 19:55 ` pault at gcc dot gnu dot org
2008-11-06  6:24 ` pault at gcc dot gnu dot org
2009-04-06 10:56 ` pault at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).