re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 22 Mar 2015 18:42:52 +0000 (18:42 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 22 Mar 2015 18:42:52 +0000 (18:42 +0000)
2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

From-SVN: r221572

libgfortran/ChangeLog
libgfortran/io/transfer.c

index 031b2ba3c3792fc76361262f3088eeb5ffeb9e39..d66fc4b6bece79061926af11ecb0795495d1ea9e 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/59513
+       * io/transfer.c (data_transfer_init): Do not error for
+       -std=legacy.
+
 2015-03-16 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/64432
index 1dc3fd1fd7b43cfab8eb1afcc0ae2bbe2eb38a52..3005a1f07b0ac5860581e58fdff15b6874dc383d 100644 (file)
@@ -2533,7 +2533,8 @@ 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 "