re PR fortran/35617 (read namelist error)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 18 Mar 2008 04:27:56 +0000 (04:27 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 18 Mar 2008 04:27:56 +0000 (04:27 +0000)
2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/35617
* io/list_read.c (eat_separator): If next character after eatline is '!'
then eatline again.

From-SVN: r133302

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 086e292df0a34fc9ac60814194c7fc4a3abaf03f..6c266daf2a315ec6ddc065a44b97bdeb4f78a0ae 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libfortran/35617
+       * io/list_read.c (eat_separator): If next character after eatline is '!'
+       then eatline again. 
+
 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * aclocal.m4: Regenerate.
index f1d0e6961e1f18fcf21c276e3b83d84f4051f841..cbe4a6497776d813eb8cc51ec54bdb0f0c431127 100644 (file)
@@ -356,6 +356,11 @@ eat_separator (st_parameter_dt *dtp)
                {
                  eat_line (dtp);
                  c = next_char (dtp);
+                 if (c == '!')
+                   {
+                     eat_line (dtp);
+                     c = next_char (dtp);
+                   }
                }
            }
          while (c == '\n' || c == '\r' || c == ' ');