public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18778] New: ENDFILE is not functionnal
@ 2004-12-02  9:40 coudert at clipper dot ens dot fr
  2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: coudert at clipper dot ens dot fr @ 2004-12-02  9:40 UTC (permalink / raw)
  To: gcc-bugs

This bug seems not to have been reported yet. It is the cause of failure for the
NIST FM411 fortran test. The reduced test case is:
--------------------------------------------
      program test
      implicit none
      integer i

      endfile(8)
      rewind(8)
      read(8,end=0023) i
      print *, i
      stop
      
 0023 print *, 'End of file'
      stop
      end
--------------------------------------------

The correct behaviour is:
$ g77 test.f; ./a.out
 End of file

while gfortran currently doesn't handle it:
$ gfortran test.f; ./a.out
At line 7 of file test.f
Fortran runtime error: Corrupt unformatted sequential file

[This was tested on i686/linux with gcc version 4.0.0 20041202]

-- 
           Summary: ENDFILE is not functionnal
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coudert at clipper dot ens dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-01-16 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
2004-12-02 11:46 ` [Bug libfortran/18778] " bdavis at gcc dot gnu dot org
2004-12-24  3:36 ` bdavis at gcc dot gnu dot org
2005-01-01  2:14 ` bdavis at gcc dot gnu dot org
2005-01-16 20:44 ` cvs-commit at gcc dot gnu dot org
2005-01-16 20:55 ` 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).