diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-18 14:23:41 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-18 14:23:41 +0000 |
commit | ccd3dcb6fb0fb5c9e11e56556c0e6b2233ee8391 (patch) | |
tree | 3a4715f06a5a521be4ad8ca35bbf677fe8012264 /libgfortran | |
parent | f15697cd0cf340f39fb6fe4f36c550d58946b6aa (diff) | |
download | gcc-ccd3dcb6fb0fb5c9e11e56556c0e6b2233ee8391.tar.gz |
2011-08-18 Tobias Burnus <burnus@net-b.de>
PR fortran/50109
* io/list_read.c (eat_separator): Fix skipping over "!" lines.
2011-08-18 Tobias Burnus <burnus@net-b.de>
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
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 11 |
2 files changed, 6 insertions, 10 deletions
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 <burnus@net-b.de> + + PR fortran/50109 + * io/list_read.c (eat_separator): Fix skipping over "!" lines. + 2011-07-23 Andreas Schwab <schwab@linux-m68k.org> * intrinsics/ctime.c: Include <stdlib.h>. 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'); |