From ccd3dcb6fb0fb5c9e11e56556c0e6b2233ee8391 Mon Sep 17 00:00:00 2001 From: burnus Date: Thu, 18 Aug 2011 14:23:41 +0000 Subject: 2011-08-18 Tobias Burnus PR fortran/50109 * io/list_read.c (eat_separator): Fix skipping over "!" lines. 2011-08-18 Tobias Burnus PR fortran/50109 * gfortran.dg/namelist_73.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177858 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/ChangeLog | 5 +++++ libgfortran/io/list_read.c | 11 +---------- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'libgfortran') diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index a30f264307a..f846b08f9ae 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2011-08-18 Tobias Burnus + + PR fortran/50109 + * io/list_read.c (eat_separator): Fix skipping over "!" lines. + 2011-07-23 Andreas Schwab * intrinsics/ctime.c: Include . diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 01272d0cb4e..11a35c941cc 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -351,16 +351,7 @@ eat_separator (st_parameter_dt *dtp) err = eat_line (dtp); if (err) return err; - if ((c = next_char (dtp)) == EOF) - return LIBERROR_END; - if (c == '!') - { - err = eat_line (dtp); - if (err) - return err; - if ((c = next_char (dtp)) == EOF) - return LIBERROR_END; - } + c = '\n'; } } while (c == '\n' || c == '\r' || c == ' ' || c == '\t'); -- cgit v1.2.1