[Bug libfortran/65200] Handle EPERM when opening files
jb at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 6 12:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65200
--- Comment #4 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Suggested doc patch:
Index: gfortran.texi
===================================================================
--- gfortran.texi (revision 221234)
+++ gfortran.texi (working copy)
@@ -1328,6 +1328,22 @@
also force cache validation and flushing dirty data and metadata.
+@node Files opened without an explicit ACTION= specifier
+@section Files opened without an explicit ACTION= specifier
+@cindex open, action
+
+The Fortran standard says that if an @code{OPEN} statement is executed
+without an explicit @code{ACTION=} specifier, the default value is
+processor dependent. GNU Fortran behaves as follows:
+
+@enumerate
+@item Attempt to open the file with @code{ACTION='READWRITE'}
+@item If that fails, try to open with @code{ACTION='READ'}
+@item If that fails, try to open with @code{ACTION='WRITE'}
+@item If that fails, generate an error
+@end enumerate
+
+
@c ---------------------------------------------------------------------
@c Extensions
@c ---------------------------------------------------------------------
More information about the Gcc-bugs
mailing list