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

Reply via email to