aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2007-09-03 19:29:17 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2007-09-03 19:29:17 +0000
commitb3560209601c229f3b76bf866f7ff7b14daba3dd (patch)
tree2b69d1335d11519e3c6693049edc1cff31f9e871 /libgfortran
parentae6cd761c47334e4f79c7e248da8c691c6ec1775 (diff)
downloadgcc-b3560209601c229f3b76bf866f7ff7b14daba3dd.zip
gcc-b3560209601c229f3b76bf866f7ff7b14daba3dd.tar.gz
gcc-b3560209601c229f3b76bf866f7ff7b14daba3dd.tar.bz2
re PR libfortran/33253 (namelist: reading back a string with apostrophe)
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. From-SVN: r128057
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/list_read.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 5c02df9..806d89b 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 b97130b..0b4b845 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;