public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31366]  New: When the last record written to a direct access file is shorter than the record length of the file, gfortran truncates the record
@ 2007-03-26 16:27 michael dot a dot richmond at nasa dot gov
  2007-03-26 21:18 ` [Bug fortran/31366] " jvdelisle at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-03-26 16:27 UTC (permalink / raw)
  To: gcc-bugs

When the last record written to a direct access file is shorter than the record
length of the file, gfortran truncates the record. The following test program
produces a file whose length is 1 when it should be 10.

PROGRAM test
OPEN (76, FILE="test.txt", ACCESS="DIRECT", STATUS="NEW", RECL=10)
WRITE(76, REC=1) "1"
END PROGRAM test


-- 
           Summary: When the last record written to a direct access file is
                    shorter than the record length of the file, gfortran
                    truncates the record
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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

end of thread, other threads:[~2007-04-18  4:42 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 16:27 [Bug fortran/31366] New: When the last record written to a direct access file is shorter than the record length of the file, gfortran truncates the record michael dot a dot richmond at nasa dot gov
2007-03-26 21:18 ` [Bug fortran/31366] " jvdelisle at gcc dot gnu dot org
2007-03-27 19:05 ` tkoenig at gcc dot gnu dot org
2007-03-28  0:53 ` jvdelisle at gcc dot gnu dot org
2007-03-31  0:45 ` [Bug fortran/31366] Last record truncated for read after short write, direct access file jvdelisle at gcc dot gnu dot org
2007-03-31  0:46 ` jvdelisle at gcc dot gnu dot org
2007-03-31  5:06 ` jvdelisle at gcc dot gnu dot org
2007-03-31  7:11 ` tkoenig at alice-dsl dot net
2007-03-31 16:28 ` jvdelisle at gcc dot gnu dot org
2007-04-01  7:11 ` patchapp at dberlin dot org
2007-04-01 15:24 ` jvdelisle at gcc dot gnu dot org
2007-04-01 15:29 ` jvdelisle at gcc dot gnu dot org
2007-04-01 17:56 ` [Bug fortran/31366] [4.2 only] " jvdelisle at gcc dot gnu dot org
2007-04-17 18:10 ` fxcoudert at gcc dot gnu dot org
2007-04-18  3:00 ` jvdelisle at gcc dot gnu dot org
2007-04-18  4:01 ` jvdelisle at gcc dot gnu dot org
2007-04-18  4:36 ` jvdelisle at gcc dot gnu dot org
2007-04-18  4:37 ` jvdelisle at gcc dot gnu dot org
2007-04-18  4:42 ` 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).