From: Jerry DeLisle Date: Tue, 18 Mar 2008 04:27:56 +0000 (+0000) Subject: re PR fortran/35617 (read namelist error) X-Git-Tag: releases/gcc-4.4.0~5996 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a79ae8432f7142dc6028fafdcc748941c16c7db;p=thirdparty%2Fgcc.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 086e292df0a3..6c266daf2a31 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 f1d0e6961e1f..cbe4a6497776 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 == ' ');