From: Jerry DeLisle Date: Tue, 18 Mar 2008 04:27:56 +0000 (+0000) Subject: re PR fortran/35617 (read namelist error) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a79ae8432f7142dc6028fafdcc748941c16c7db;p=gcc.git re PR fortran/35617 (read namelist error) 2008-03-17 Jerry DeLisle PR libfortran/35617 * io/list_read.c (eat_separator): If next character after eatline is '!' then eatline again. From-SVN: r133302 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 086e292df0a..6c266daf2a3 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2008-03-17 Jerry DeLisle + + PR libfortran/35617 + * io/list_read.c (eat_separator): If next character after eatline is '!' + then eatline again. + 2008-03-16 Ralf Wildenhues * aclocal.m4: Regenerate. diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index f1d0e6961e1..cbe4a649777 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -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 == ' ');