diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-11-23 02:02:31 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-11-23 02:02:31 +0000 |
commit | c4a108fd8eba44c9aac67f2c482754c2f975fdf6 (patch) | |
tree | 2d50c7b2e41f4054d3fcb4fea7749de136a8f41b /libgfortran/io | |
parent | 79a6d9b7ff3822675ee44d8d6cad86027dadd664 (diff) | |
download | gcc-c4a108fd8eba44c9aac67f2c482754c2f975fdf6.zip gcc-c4a108fd8eba44c9aac67f2c482754c2f975fdf6.tar.gz gcc-c4a108fd8eba44c9aac67f2c482754c2f975fdf6.tar.bz2 |
re PR libfortran/24794 (problem with namelist input of character array)
2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* io/list_read.c (read_character): Add auto completion on short
namelist reads.
From-SVN: r107394
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/list_read.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index be620ae..75f2b65 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -704,6 +704,11 @@ read_character (st_parameter_dt *dtp, int length __attribute__ ((unused))) goto get_string; default: + if (dtp->u.p.namelist_mode) + { + unget_char (dtp,c); + return; + } push_char (dtp, c); goto get_string; } |