This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/17286] namelist containing more than one value cannot contain whitespace or newlines for READ
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 02:23:02 -0000
- Subject: [Bug libfortran/17286] namelist containing more than one value cannot contain whitespace or newlines for READ
- References: <20040902134002.17286.paul.richard.thomas@cea.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bdavis at gcc dot gnu dot org 2004-09-13 02:23 -------
just some info found debugging :
in namelist_read:
name_matched = 1;
nl = find_nml_node (saved_string);
if (nl == NULL)
internal_error ("Can not match a namelist variable");
saved string is equal to the previous data value as well as the variable, so it
will never match.
searching for num3
searching for 42num4
^^
this is the value for num3
possible fix is to clear out saved_string before the variable name is parsed,
maybe here:
case '\n':
case '\t':
break;
case ',':
free_saved ();
next_name = 1;
break;
my time is limited, so i may not get back to this for a few weeks. hope it is
helpfull to someone.
--bud
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17286