]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 30 Mar 2015 20:47:40 +0000 (20:47 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 30 Mar 2015 20:47:40 +0000 (20:47 +0000)
2015-03-30 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/59513
* io/transfer.c (data_transfer_init): Do not error for
-std=legacy.

From-SVN: r221778

libgfortran/ChangeLog
libgfortran/io/transfer.c

index 547a7f29229c6f7c043a5f01b23e970e940bbd48..184bf3d80924bf905af04c21f485d46ab1bd5c7d 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-30 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/59513
+       * io/transfer.c (data_transfer_init): Do not error for
+       -std=legacy.
+
 2015-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/60956
index 2e11727d1a31097e3660b0fbfc02dc59b294fd61..87c67bf6a3d441d962d2e6cc8160196a1e53297e 100644 (file)
@@ -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