public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work @ 2005-11-25 19:04 jb at gcc dot gnu dot org 2005-11-25 19:13 ` [Bug fortran/25036] " jb at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: jb at gcc dot gnu dot org @ 2005-11-25 19:04 UTC (permalink / raw) To: gcc-bugs The program program test integer :: fh = 71 open(fh, file="f", form='unformatted', status='unknown') ! close(fh) open(fh, file="f", form='unformatted', status='unknown') end program fails with At line 5 of file file-status-old.f90 Fortran runtime error: OPEN statement must have a STATUS of OLD The F2003 standard says that if status='unknown', which is the same as if no status specifier is present, then the status is processor dependent. So technically this is not a standard conformance bug, but it's still a problem for some real codes, and it doesn't cost us anything to allow it. Thanks to Bernhard Fischer for bringing up this problem. -- Summary: Reopening a file with STATUS='UNKNOWN' should work Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: jb at gcc dot gnu dot org ReportedBy: jb at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25036 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/25036] Reopening a file with STATUS='UNKNOWN' should work 2005-11-25 19:04 [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work jb at gcc dot gnu dot org @ 2005-11-25 19:13 ` jb at gcc dot gnu dot org 2005-11-25 20:39 ` jb at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jb at gcc dot gnu dot org @ 2005-11-25 19:13 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jb at gcc dot gnu dot org 2005-11-25 19:13 ------- Also, g77 (and pathscale and ifort) support reopening files with status='unknown'. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25036 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/25036] Reopening a file with STATUS='UNKNOWN' should work 2005-11-25 19:04 [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work jb at gcc dot gnu dot org 2005-11-25 19:13 ` [Bug fortran/25036] " jb at gcc dot gnu dot org @ 2005-11-25 20:39 ` jb at gcc dot gnu dot org 2005-11-25 20:40 ` pinskia at gcc dot gnu dot org 2005-11-26 8:52 ` jb at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jb at gcc dot gnu dot org @ 2005-11-25 20:39 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jb at gcc dot gnu dot org 2005-11-25 20:39 ------- Patch here: http://gcc.gnu.org/ml/fortran/2005-11/msg00677.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25036 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/25036] Reopening a file with STATUS='UNKNOWN' should work 2005-11-25 19:04 [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work jb at gcc dot gnu dot org 2005-11-25 19:13 ` [Bug fortran/25036] " jb at gcc dot gnu dot org 2005-11-25 20:39 ` jb at gcc dot gnu dot org @ 2005-11-25 20:40 ` pinskia at gcc dot gnu dot org 2005-11-26 8:52 ` jb at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-11-25 20:40 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2005-11-25 20:40 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |19292 nThis| | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2005-11-25 20:40:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25036 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/25036] Reopening a file with STATUS='UNKNOWN' should work 2005-11-25 19:04 [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work jb at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-11-25 20:40 ` pinskia at gcc dot gnu dot org @ 2005-11-26 8:52 ` jb at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jb at gcc dot gnu dot org @ 2005-11-26 8:52 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jb at gcc dot gnu dot org 2005-11-26 08:52 ------- This seems to be a duplicate of PR 24945. Sorry. *** This bug has been marked as a duplicate of 24945 *** -- jb at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25036 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-11-26 8:52 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-11-25 19:04 [Bug fortran/25036] New: Reopening a file with STATUS='UNKNOWN' should work jb at gcc dot gnu dot org 2005-11-25 19:13 ` [Bug fortran/25036] " jb at gcc dot gnu dot org 2005-11-25 20:39 ` jb at gcc dot gnu dot org 2005-11-25 20:40 ` pinskia at gcc dot gnu dot org 2005-11-26 8:52 ` jb 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).