This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31052] Bad IOSTAT values when readings NAMELISTs past EOF
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2007 10:22:19 -0000
- Subject: [Bug libfortran/31052] Bad IOSTAT values when readings NAMELISTs past EOF
- References: <bug-31052-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from anlauf at gmx dot de 2007-03-06 10:22 -------
(In reply to comment #4)
> I have to find out why the code in question that lead to
> the problem report does not properly recover with gfortran.
It might be an interference with BACKSPACE, as the
full code that lead me to the investigation does a
scan through a namelist file and uses BACKSPACE
here and then.
Removing the BACKSPACE on the unit when the EOF condition
occured helps somewhat, but then I encounter a funny
error on a NAMELIST read:
Fortran runtime error: Missing format for FORMATTED data transfer
I thought that NAMELIST reads are list-directed.
Anyway, I guess I have to produce a better testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31052