This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/31052] Bad IOSTAT values when readings NAMELISTs past EOF



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]