aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2005-11-23 02:02:31 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2005-11-23 02:02:31 +0000
commitc4a108fd8eba44c9aac67f2c482754c2f975fdf6 (patch)
tree2d50c7b2e41f4054d3fcb4fea7749de136a8f41b /libgfortran/io
parent79a6d9b7ff3822675ee44d8d6cad86027dadd664 (diff)
downloadgcc-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.c5
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;
}