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
* [Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work
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 ` fxcoudert at gcc dot gnu dot org
2005-09-29 16:14 ` jblomqvi at cc dot hut dot fi
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-29 15:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-29 15:46:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24112
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work
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
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-09-29 16:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jblomqvi at cc dot hut dot
|dot org |fi
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24112
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work
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
4 siblings, 0 replies; 6+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-09-29 18:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jblomqvi at cc dot hut dot fi 2005-09-29 18:59 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01841.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24112
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work
2005-09-28 21:10 [Bug libfortran/24112] New: Reopening file with STATUS='OLD' doesn't work jblomqvi at cc dot hut dot fi
` (2 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-30 18:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-30 18:48 -------
Subject: Bug 24112
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2005-09-30 18:47:55
Modified files:
libgfortran : ChangeLog
libgfortran/io : open.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: open_status_1.f90
Log message:
2005-09-30 Janne Blomqvist <jblomqvi@cc.hut.fi>
libgfortran/
PR 24112
* io/open.c (edit_modes): Check for correct flag.
gcc/testsuite/
PR 24112
* gfortran.dg/open_status_1.f90: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.313&r2=1.314
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/open.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6118&r2=1.6119
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/open_status_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24112
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/24112] Reopening file with STATUS='OLD' doesn't work
2005-09-28 21:10 [Bug libfortran/24112] New: Reopening file with STATUS='OLD' doesn't work jblomqvi at cc dot hut dot fi
` (3 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-01 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-10-01 15:56 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
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).