summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-02 03:58:57 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-02 03:58:57 +0000
commitc1d7fcb1143ae4a4cb7c1807ca24ecf3fc851170 (patch)
treec4a7f17af999e2081ff6098903eedbf45510fd69 /libgfortran
parent0a2d38745c56ac47c14d7a54d1c248adbca08bff (diff)
downloadgcc-c1d7fcb1143ae4a4cb7c1807ca24ecf3fc851170.tar.gz
2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36676 * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137334 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/list_read.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 69a205949bf..6e3a729fc7a 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/36676
+ * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
+
2008-06-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36657
diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c
index 82c288f6c6e..ba8de9750e1 100644
--- a/libgfortran/io/list_read.c
+++ b/libgfortran/io/list_read.c
@@ -2922,8 +2922,8 @@ find_nml_name:
goto find_nml_name;
}
- if (c == '!')
- eat_line (dtp);
+ unget_char (dtp, c);
+ eat_separator (dtp);
/* Ready to read namelist objects. If there is an error in input
from stdin, output the error message and continue. */