[Bug libfortran/47154] [4.6 Regression] END= does not work in namelist read

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 4 14:53:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47154

Janne Blomqvist <jb at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jb at gcc dot gnu.org

--- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-01-04 14:53:40 UTC ---
Ok for trunk.

Thanks for the patch.

Per se, I suspect the problem was not multiple calls to generate_error(), as
generate_error has some logic to return early in case an error has already been
recorded. Rather I think the culprit is multiple calls to hit_eof(), I've been
bitten by this myself. The first call tells us that we've hit EOF, and we're at
the endfile record. The second one moves the position to after the endfile
record, which is another type of error. Unfortunately I don't have any good
idea how to solve this.



More information about the Gcc-bugs mailing list