2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28335
* close.c (st_close): Revert previous patch and add comment.
* file_position.c (st_flush): Revert previous patch and add comment.
From-SVN: r115829
+2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libgfortran/28335
+ * close.c (st_close): Revert previous patch and add comment.
+ * file_position.c (st_flush): Revert previous patch and add comment.
+
2006-07-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* intrinsics/date_and_time.c: Add functions for GMTIME and LTIME.
unlink (path);
#endif
}
- else
- generate_error (&clp->common, ERROR_BAD_OPTION,
- "Can't find specified UNIT in CLOSE");
+
+ /* CLOSE on unconnected unit is legal and a no-op: F95 std., 9.3.5. */
library_end ();
}
flush (u->s);
unlock_unit (u);
}
- else
- generate_error (&fpp->common, ERROR_BAD_OPTION,
- "Can't find specified UNIT in FLUSH");
+ /* CLOSE on unconnected unit is legal and a no-op: F95 std., 9.3.5. */
library_end ();
}