public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25550]  New: file data corrupted after reading end of file
@ 2005-12-23 17:29 dir at lanl dot gov
  2005-12-27  4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dir at lanl dot gov @ 2005-12-23 17:29 UTC (permalink / raw)
  To: gcc-bugs

After the end of file is read, the file data is corrupted -

[dranta:~/tests/gfortran-D] dir% gfortran -o write17 write17.f
[dranta:~/tests/gfortran-D] dir% write17
   538976288
Abort
[dranta:~/tests/gfortran-D] dir% cat write17.f
      integer data
      data=-1
      open(unit=11,status='scratch',form='unformatted')
       write(11)data
       read(11,end=        1000 )data
 1000  continue
       rewind 11
       read(11,end=        1001 )data
 1001  continue
       if(data.ne.-1)then
          write(6,*)data
          call abort
       endif
       close(11)
       end


-- 
           Summary: file data corrupted after reading end of file
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
  GCC host triplet: powerpc-apple-darwin8.3.0


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


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

end of thread, other threads:[~2006-01-01  5:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-23 17:29 [Bug libfortran/25550] New: file data corrupted after reading end of file dir at lanl dot gov
2005-12-27  4:00 ` [Bug libfortran/25550] " jvdelisle at gcc dot gnu dot org
2005-12-28  7:20 ` jvdelisle at gcc dot gnu dot org
2005-12-28  7:21 ` jvdelisle at gcc dot gnu dot org
2006-01-01  4:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01  4:20 ` jvdelisle at gcc dot gnu dot org
2006-01-01  5:19 ` jvdelisle at gcc dot gnu dot org
2006-01-01  5:20 ` 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).