diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-08-10 12:36:01 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-08-10 12:36:01 +0000 |
commit | cf9293a17ed0ca4473a0aeeadf4f2b84f2e523c9 (patch) | |
tree | ae6e5253fca6c3281460b4dc506f3b82b7001ad0 /libgfortran/io | |
parent | caba20819abeaf9f331666bc013caf7319270a99 (diff) | |
download | gcc-cf9293a17ed0ca4473a0aeeadf4f2b84f2e523c9.zip gcc-cf9293a17ed0ca4473a0aeeadf4f2b84f2e523c9.tar.gz gcc-cf9293a17ed0ca4473a0aeeadf4f2b84f2e523c9.tar.bz2 |
re PR fortran/33039 (Read NAMELIST: reads wrong namelist name)
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.
From-SVN: r127332
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/list_read.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 41d4a60..219e921 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. */ |