]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/24794 (problem with namelist input of character array)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 23 Nov 2005 02:02:31 +0000 (02:02 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 23 Nov 2005 02:02:31 +0000 (02:02 +0000)
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

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 2d1ec43575be161ff5231b558c65fba9a3fc0e44..eff28802c2389597c67d206f493a69cd86b5980d 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
 
        * io/io.h (_LARGE_FILES): Undefine for AIX.
index be620aef197aaa78dd350697b5bbe4b0180ec2c2..75f2b65d64ff940112973f5cff7e881c467f6248 100644 (file)
@@ -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;
     }