This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/58324] New: Incorrect iostat while reading SEQUENTIAL file
- From: "larix at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Sep 2013 11:57:20 +0000
- Subject: [Bug fortran/58324] New: Incorrect iostat while reading SEQUENTIAL file
- Auto-submitted: auto-generated
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