OSDN Git Service

2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 03:58:57 +0000 (03:58 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 03:58:57 +0000 (03:58 +0000)
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

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 69a2059..6e3a729 100644 (file)
@@ -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
index 82c288f..ba8de97 100644 (file)
@@ -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.  */