This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 22:45:13 -0000
- Subject: [Bug fortran/36942] iostat and/or end= and Err= don't work in read statements, unformatted reads
- References: <bug-36942-16518@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from kargl at gcc dot gnu dot org 2008-07-25 22:45 -------
Your iostat code with the same compilers shows
troutmask:sgk[219] ./z
ival(should indicate normal) 0
ival(should indicate normal) 0
ival(should indicate end) -1
File closed and then reopened for errors...
ival(should indicate error) 17
STOP making sense
troutmask:sgk[220] gfc4x -o z n.f
troutmask:sgk[221] ./z
ival(should indicate normal) 0
ival(should indicate normal) 0
ival(should indicate end) -1
File closed and then reopened for errors...
ival(should indicate error) 5016
STOP making sense
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36942