This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35627] [4.3, 4.4 regression] namelist read error
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2008 22:02:14 -0000
- Subject: [Bug fortran/35627] [4.3, 4.4 regression] namelist read error
- References: <bug-35627-15934@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2008-03-18 22:02 -------
The problem is that we don't properly rewind properly for "nbshapa"; the parser
sees 'n'; it then try whether "NaN" matches. It checks the next character 'b'
and fails. The problem is that only 'b' and not 'nb' are put back:
} /* Match NaN. Up to here, c contains either 'N' or 'n'. */
else if (((c = next_char (dtp)) == 'a' || c == 'A')
&& ((c = next_char (dtp)) == 'n' || c == 'N')
&& (c = next_char (dtp)))
{ ... }
bad:
if (nml_bad_return (dtp, c))
return 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35627