public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58324] New: Incorrect iostat while reading SEQUENTIAL file
@ 2013-09-05 11:57 larix at libero dot it
  2013-09-06 21:24 ` [Bug fortran/58324] Bogus END-of-line error with list-directed I/O of file without trailing sequential record marker burnus at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: larix at libero dot it @ 2013-09-05 11:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58324
           Summary: Incorrect iostat while reading SEQUENTIAL file
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larix at libero dot it

Created attachment 30750
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30750&action=edit
source code

reading a formatted sequential file, if last record is not teminated by
LineFeed character, 

read(unit=111,fmt=*, iostat=j) i
produces j= -1

while 
read(111,'(I1)', iostat=j) i
produces j= 0


see attached source reproducing the bug


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

end of thread, other threads:[~2014-03-19  1:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 11:57 [Bug fortran/58324] New: Incorrect iostat while reading SEQUENTIAL file larix at libero dot it
2013-09-06 21:24 ` [Bug fortran/58324] Bogus END-of-line error with list-directed I/O of file without trailing sequential record marker burnus at gcc dot gnu.org
2014-01-16 21:15 ` dominiq at lps dot ens.fr
2014-03-13  5:22 ` jvdelisle at gcc dot gnu.org
2014-03-15 15:12 ` jvdelisle at gcc dot gnu.org
2014-03-15 15:16 ` jvdelisle at gcc dot gnu.org
2014-03-15 20:32 ` jvdelisle at gcc dot gnu.org
2014-03-15 20:35 ` jvdelisle at gcc dot gnu.org
2014-03-15 23:07 ` jvdelisle at gcc dot gnu.org
2014-03-15 23:08 ` jvdelisle at gcc dot gnu.org
2014-03-18  1:20 ` jvdelisle at gcc dot gnu.org
2014-03-18  1:34 ` jvdelisle at gcc dot gnu.org
2014-03-19  1:29 ` jvdelisle at gcc dot gnu.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).