This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34564] New: Reading zero variables from a zero-sized file fails
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2007 11:36:09 -0000
- Subject: [Bug fortran/34564] New: Reading zero variables from a zero-sized file fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
More bugs found via the test suite.
implicit none
integer :: ios
open(9,file='tmp.dat',status='REPLACE')
write(9,'(a)',advance='NO')
close(9)
open(9,FILE='tmp.dat',status='OLD',position='REWIND')
read(9,'(a)',ADVANCE='NO',iostat=ios)
if(ios /= 0) print *, 'ERROR: Expected ios = 0, got: ios = ', ios
read(9,'(a)',ADVANCE='NO',iostat=ios)
if(ios /= 0) print *, 'ERROR: Expected ios = 0, got: ios = ', ios
close(9, status='delete')
END
--
Summary: Reading zero variables from a zero-sized file fails
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 32834
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34564