http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61049

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The following patch also fixes this PR (regtested and NIST suite)

--- ../_clean/libgfortran/io/list_read.c    2014-04-27 00:39:19.000000000 +0200
+++ libgfortran/io/list_read.c    2014-05-05 09:53:52.000000000 +0200
@@ -2066,6 +2066,7 @@ list_formatted_read_scalar (st_parameter
           && dtp->u.p.current_unit->decimal_status == DECIMAL_POINT))
         {
           dtp->u.p.comma_flag = 1;
+          eat_separator (dtp);
           goto cleanup;
         }


I have no opinion about which patch is better, i.e., I don't have any test
which succeeds with one patch, but fails with the other.

Reply via email to