]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/fortran/doc/gfortran/compiler-characteristics/files-opened-without-an-explicit-action=-specifier.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / fortran / doc / gfortran / compiler-characteristics / files-opened-without-an-explicit-action=-specifier.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. index:: open, action
7
8.. _files-opened-without-an-explicit-action=-specifier:
9
10Files opened without an explicit ACTION= specifier
11**************************************************
12
13The Fortran standard says that if an ``OPEN`` statement is executed
14without an explicit ``ACTION=`` specifier, the default value is
15processor dependent. GNU Fortran behaves as follows:
16
17* Attempt to open the file with ``ACTION='READWRITE'``
18
19* If that fails, try to open with ``ACTION='READ'``
20
21* If that fails, try to open with ``ACTION='WRITE'``
22
3ed1b4ce 23* If that fails, generate an error