diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-07-31 00:15:08 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2006-07-31 00:15:08 +0000 |
commit | b8d403b4679a2bd170faa457de6de2da309d537d (patch) | |
tree | 8abc831485b80cd7da34db76760dc345a164c2e4 /libgfortran/io/close.c | |
parent | 8b956d3d381610258beb367331e476698459fecf (diff) | |
download | gcc-b8d403b4679a2bd170faa457de6de2da309d537d.zip gcc-b8d403b4679a2bd170faa457de6de2da309d537d.tar.gz gcc-b8d403b4679a2bd170faa457de6de2da309d537d.tar.bz2 |
re PR fortran/28335 (flush() / write() statement on closed units - error?)
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
Diffstat (limited to 'libgfortran/io/close.c')
-rw-r--r-- | libgfortran/io/close.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index b6766ff..66ea6c3 100644 --- a/libgfortran/io/close.c +++ b/libgfortran/io/close.c @@ -102,8 +102,7 @@ st_close (st_parameter_close *clp) 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 (); } |