public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/24112] New: Reopening file with STATUS='OLD' doesn't work
@ 2005-09-28 21:10 jblomqvi at cc dot hut dot fi
  2005-09-29 15:47 ` [Bug libfortran/24112] " fxcoudert at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-09-28 21:10 UTC (permalink / raw)
  To: gcc-bugs

Consider the following:

! Test reopening with io status='old'
! First create a test file: "touch foo"
program iostatus
  open (1, file='foo', status='old')
  open (1, file='foo', status='old')
end program iostatus

According to the standard (F2003 draft, section 9.4.5, page 181):

"A STATUS= specifier with a value of OLD is always allowed when the file to be
connected to the unit is the same as the file to which the unit is connected."

However, gfortran claims:

At line 5 of file iostatus.f90
Fortran runtime error: Cannot change STATUS parameter in OPEN statement

-- 
           Summary: Reopening file with STATUS='OLD' doesn't work
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jblomqvi at cc dot hut dot fi
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-10-01 15:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-28 21:10 [Bug libfortran/24112] New: Reopening file with STATUS='OLD' doesn't work jblomqvi at cc dot hut dot fi
2005-09-29 15:47 ` [Bug libfortran/24112] " fxcoudert at gcc dot gnu dot org
2005-09-29 16:14 ` jblomqvi at cc dot hut dot fi
2005-09-29 18:59 ` jblomqvi at cc dot hut dot fi
2005-09-30 18:48 ` cvs-commit at gcc dot gnu dot org
2005-10-01 15:56 ` pinskia 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).