public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/30009]  New: Unformatted reads exceeding one record should use the next record not give EOF
@ 2006-11-28 21:34 burnus at gcc dot gnu dot org
  2006-11-28 21:49 ` [Bug libfortran/30009] " brooks at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-11-28 21:34 UTC (permalink / raw)
  To: gcc-bugs

See http://gcc.gnu.org/ml/fortran/2006-11/msg00708.html
Reported by Chris Talley.

Tested with current 4.3 and also with 4.1.

Testcase, see URL; essential parts of the test case (form="unformatted"):
       WRITE(1) 1
       WRITE(1) 2, 3, 4
       WRITE(1) 5, 6, 7
       REWIND(1)
       READ(1,ERR=10) I,J,K
The read should read "1" of the first record and then "2" and "3" of the second
record. gfortran however reads "1", hits then the end of the record and gives
an end-of-file error.

Note that none of the end-of-file conditions given in 9.10 of Fortran 2003 (cf.
also 9.4.1.5f. of Fortran 95) is met. Note further that an end-of-record
condition cannot occure for unformatted files.


-- 
           Summary: Unformatted reads exceeding one record should use the
                    next record not give EOF
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-01-02  4:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 21:34 [Bug libfortran/30009] New: Unformatted reads exceeding one record should use the next record not give EOF burnus at gcc dot gnu dot org
2006-11-28 21:49 ` [Bug libfortran/30009] " brooks at gcc dot gnu dot org
2006-11-28 21:49 ` brooks at gcc dot gnu dot org
2006-11-28 22:23 ` tkoenig at gcc dot gnu dot org
2006-11-28 22:58 ` [Bug libfortran/30009] Unformatted reads exceeding storage units gives EOF instead of ERR burnus at gcc dot gnu dot org
2006-12-02 21:56 ` tkoenig at gcc dot gnu dot org
2006-12-02 23:32 ` jvdelisle at gcc dot gnu dot org
2006-12-03  8:32 ` burnus at gcc dot gnu dot org
2006-12-03 14:06 ` tkoenig at gcc dot gnu dot org
2006-12-03 14:17 ` burnus at gcc dot gnu dot org
2006-12-03 18:56 ` tkoenig at gcc dot gnu dot org
2006-12-03 21:02 ` tkoenig at gcc dot gnu dot org
2006-12-04  2:18 ` jvdelisle at gcc dot gnu dot org
2006-12-05 19:01 ` patchapp at dberlin dot org
2006-12-06 19:26 ` tkoenig at gcc dot gnu dot org
2006-12-10 22:17 ` tkoenig at gcc dot gnu dot org
2006-12-15 22:27 ` [Bug libfortran/30009] [4.1 only] " tkoenig at gcc dot gnu dot org
2006-12-16  0:35 ` jvdelisle at gcc dot gnu dot org
2006-12-16  8:18 ` tkoenig at gcc dot gnu dot org
2007-01-02  4:48 ` jvdelisle 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).