]> 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 16:51:37 +0000 (16:51 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 30 Mar 2015 16:51:37 +0000 (16:51 +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: r221772

libgfortran/ChangeLog
libgfortran/io/transfer.c

index 724cc5bdf444a4acbeade814cd8f08a7dad01fd8..af390a846c5228e73b41870ff0bdb2d05f4a0fcb 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-28 Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/65596
index 89f7ba8eb13768c7b9c0cf769b0d9eed167ff449..48fc598c87a5714d3be548bb5e34ca0c6c34d7d3 100644 (file)
@@ -2533,15 +2533,15 @@ 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