]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/25419 (gfortran read does not take comma for default on one entry)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 28 Dec 2005 06:59:35 +0000 (06:59 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 28 Dec 2005 06:59:35 +0000 (06:59 +0000)
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Allow comma to return a
null value (default).

From-SVN: r109099

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 02d38d95331c1d58f2b3b3fc85c9d36f6101ea77..65be7e725c6deb699032c221ad60c9636bf69c35 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/25419
+       * io/list_read.c (list_formatted_read_scalar): Allow comma to return a
+       null value (default).
+
 2005-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/25307
index 9784403a39c9d18f7325ba32daf4ac658028e8ef..b11f6a523ff20257e8083a4fb5fec2d051fb42bd 100644 (file)
@@ -1353,10 +1353,7 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p, int kind,
        {                       /* Found a null value.  */
          eat_separator (dtp);
          dtp->u.p.repeat_count = 0;
-         if (dtp->u.p.at_eol)
-           finish_separator (dtp);
-          else
-           goto cleanup;
+         goto cleanup;
        }
 
     }