This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
A strange omission
- From: "Paul Thomas" <paulthomas2 at wanadoo dot fr>
- To: <fortran at gcc dot gnu dot org>
- Date: Tue, 29 Mar 2005 15:59:33 +0200
- Subject: A strange omission
Whilst going through the throes of testing all the testsuite candidates and
the final debugging for namelist, I noticed this "feature" in
libgfortran/io/list_read.c
In eat_separator at line 242, in my version:
.....
break;
case '\n':
case '\r':
[ at_eol = 1; ]
break;
case '!':
where the [at_eol = 1;] is missing. I inserted it and find that no
regressions are caused. It removes the need for a kluge in namelist read.
Does anybody know why the end of line flag is not being set at the end of a
line?
If nobody can come up with an explanation, I'll submit it as a separate
patch.
Paul T