From: Jerry DeLisle Date: Wed, 3 Oct 2007 00:33:09 +0000 (+0000) Subject: re PR libfortran/33253 (namelist: reading back a string with apostrophe) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af2778d32e8d916747229999a1a359a3af764018;p=gcc.git re PR libfortran/33253 (namelist: reading back a string with apostrophe) 2007-10-02 Jerry DeLisle PR libfortran/33253 * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE and quote value in check of first character in string. From-SVN: r128973 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 7392997e2af..a249ded5f90 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-10-02 Jerry DeLisle + + PR libfortran/33253 + * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE + and quote value in check of first character in string. + 2007-10-02 Francois-Xavier Coudert PR fortran/33469 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 0eb1845849d..42c534a1c2f 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -893,7 +893,10 @@ read_character (st_parameter_dt *dtp, int length __attribute__ ((unused))) goto get_string; default: - if (dtp->u.p.namelist_mode) + if (dtp->u.p.namelist_mode + && (dtp->u.p.current_unit->flags.delim == DELIM_APOSTROPHE + || dtp->u.p.current_unit->flags.delim == DELIM_QUOTE + || quote == ' ')) { unget_char (dtp,c); return;