diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-03 19:29:17 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-03 19:29:17 +0000 |
commit | 9f527dc4d8b9f83accb2900863b62e137551715d (patch) | |
tree | 2b69d1335d11519e3c6693049edc1cff31f9e871 /libgfortran | |
parent | 2e2dd1b3c24bc3fb029291169a038703fd01efe0 (diff) | |
download | gcc-9f527dc4d8b9f83accb2900863b62e137551715d.tar.gz |
2007-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33253
* io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
in check of first character in string.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 5c02df9b679..806d89bda2f 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2007-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libfortran/33253 + * io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE + in check of first character in string. + 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR fortran/31675 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index b97130b7708..0b4b8456996 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -887,7 +887,9 @@ 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)) { unget_char (dtp,c); return; |