2008-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2008 04:27:56 +0000 (04:27 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Mar 2008 04:27:56 +0000 (04:27 +0000)
PR libfortran/35617
* io/list_read.c (eat_separator): If next character after eatline is '!'
then eatline again.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133302 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 086e292..6c266da 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 f1d0e69..cbe4a64 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 == ' ');