From: Jerry DeLisle Date: Mon, 30 Mar 2015 20:47:40 +0000 (+0000) Subject: re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed... X-Git-Tag: releases/gcc-4.8.5~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9fa5f116ffab5228d45b6cfd2b6aca0624a50ae;p=thirdparty%2Fgcc.git re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE) 2015-03-30 Jerry DeLisle PR libgfortran/59513 * io/transfer.c (data_transfer_init): Do not error for -std=legacy. From-SVN: r221778 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 547a7f29229c..184bf3d80924 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2015-03-30 Jerry DeLisle + + PR libgfortran/59513 + * io/transfer.c (data_transfer_init): Do not error for + -std=legacy. + 2015-03-22 Jerry DeLisle PR libgfortran/60956 diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 2e11727d1a31..87c67bf6a3d4 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2529,15 +2529,16 @@ data_transfer_init (st_parameter_dt *dtp, int read_flag) return; } - if (dtp->u.p.current_unit->endfile == AFTER_ENDFILE) - { + if (compile_options.warn_std && + dtp->u.p.current_unit->endfile == AFTER_ENDFILE) + { generate_error (&dtp->common, LIBERROR_OPTION_CONFLICT, "Sequential READ or WRITE not allowed after " "EOF marker, possibly use REWIND or BACKSPACE"); return; } - } + /* Process the ADVANCE option. */ dtp->u.p.advance_status