From: Jerry DeLisle Date: Wed, 28 Dec 2005 06:59:35 +0000 (+0000) Subject: re PR libfortran/25419 (gfortran read does not take comma for default on one entry) X-Git-Tag: releases/gcc-4.2.0~5141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f006d8e321dd05a7eefe40c9385aa72808e8cd;p=thirdparty%2Fgcc.git re PR libfortran/25419 (gfortran read does not take comma for default on one entry) 2005-12-28 Jerry DeLisle PR libgfortran/25419 * io/list_read.c (list_formatted_read_scalar): Allow comma to return a null value (default). From-SVN: r109099 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 02d38d95331c..65be7e725c6d 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2005-12-28 Jerry DeLisle + + PR libgfortran/25419 + * io/list_read.c (list_formatted_read_scalar): Allow comma to return a + null value (default). + 2005-12-21 Jerry DeLisle PR libgfortran/25307 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index 9784403a39c9..b11f6a523ff2 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -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; } }