diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-10-03 00:33:09 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-10-03 00:33:09 +0000 |
commit | af2778d32e8d916747229999a1a359a3af764018 (patch) | |
tree | 4c9d94f20418eebf2b8ed58930bea92c82cc7eeb /libgfortran | |
parent | 9e4e09166b61079a208265321af2bd0e0bfc8c6b (diff) | |
download | gcc-af2778d32e8d916747229999a1a359a3af764018.zip gcc-af2778d32e8d916747229999a1a359a3af764018.tar.gz gcc-af2778d32e8d916747229999a1a359a3af764018.tar.bz2 |
re PR libfortran/33253 (namelist: reading back a string with apostrophe)
2007-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 7392997..a249ded 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + 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 <fxcoudert@gcc.gnu.org> PR fortran/33469 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 0eb1845..42c534a 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; |