This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/17286] namelist containing more than one value cannot contain whitespace or newlines for READ


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]