[Bug libfortran/17286] namelist containing more than one value cannot contain whitespace or newlines for READ
bdavis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 13 02:23:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list