summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-10 12:36:01 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-10 12:36:01 +0000
commit903d87f077d4ba144f66a0b633f6382485101e68 (patch)
treeae6e5253fca6c3281460b4dc506f3b82b7001ad0 /libgfortran
parent23360a6af1f21e0502518a7a8c93b18139cbfb8f (diff)
downloadgcc-903d87f077d4ba144f66a0b633f6382485101e68.tar.gz
2007-08-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33039 * io/list_read.c (find_nml_name): Check for a space after a namelist name match. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127332 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/list_read.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 04b0ecf6ac6..30ad87ab511 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/33039
+ * io/list_read.c (find_nml_name): Check for a space after a namelist
+ name match.
+
2007-08-09 Tobias Burnus <burnus@net-b.de>
PR fortran/32987
diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c
index 41d4a604291..219e9218cca 100644
--- a/libgfortran/io/list_read.c
+++ b/libgfortran/io/list_read.c
@@ -2593,6 +2593,14 @@ find_nml_name:
if (dtp->u.p.nml_read_error)
goto find_nml_name;
+ /* A trailing space is required, we give a little lattitude here, 10.9.1. */
+ c = next_char (dtp);
+ if (!is_separator(c))
+ {
+ unget_char (dtp, c);
+ goto find_nml_name;
+ }
+
/* Ready to read namelist objects. If there is an error in input
from stdin, output the error message and continue. */