diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-07-02 03:58:57 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-07-02 03:58:57 +0000 |
commit | bdd3085e6640fa149e6e3a2247f61a4bcafb85f9 (patch) | |
tree | c4a7f17af999e2081ff6098903eedbf45510fd69 | |
parent | 36249aadb3d5f63931fee79443688ecd51712b5a (diff) | |
download | gcc-bdd3085e6640fa149e6e3a2247f61a4bcafb85f9.zip gcc-bdd3085e6640fa149e6e3a2247f61a4bcafb85f9.tar.gz gcc-bdd3085e6640fa149e6e3a2247f61a4bcafb85f9.tar.bz2 |
re PR fortran/36676 (Namelist Comments Problems)
2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36676
* io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.
From-SVN: r137334
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 69a2059..6e3a729 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/36676 + * io/list_read.c (find_nml_name): Use eat_separator instead of eat_line. + 2008-06-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/36657 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 82c288f..ba8de97 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -2922,8 +2922,8 @@ find_nml_name: goto find_nml_name; } - if (c == '!') - eat_line (dtp); + unget_char (dtp, c); + eat_separator (dtp); /* Ready to read namelist objects. If there is an error in input from stdin, output the error message and continue. */ |