summaryrefslogtreecommitdiff
path: root/libgfortran/io/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/io/close.c')
-rw-r--r--libgfortran/io/close.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c
index b6766ff37d5..66ea6c3fb69 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 ();
}