summaryrefslogtreecommitdiff
path: root/libgfortran/io
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-26 09:12:36 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-26 09:12:36 +0000
commitdc04311d573ff9f15239325ba7f4e720cb91f2d5 (patch)
tree80897fe0a2371eae7241f310f2f4a3d46760962f /libgfortran/io
parent4be3f85588ab544fa10b6f457997847ccdbfa9f8 (diff)
downloadgcc-dc04311d573ff9f15239325ba7f4e720cb91f2d5.tar.gz
libgfortran ChangeLog:
2005-11-26 Janne Blomqvist <jb@gcc.gnu.org> PR libgfortran/24945 * io/open.c (edit_modes): Check for STATUS_UNKNOWN flag. testsuite ChangeLog 2005-11-26 Janne Blomqvist <jb@gcc.gnu.org> PR libgfortran/24945 * gfortran.dg/open_status_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107538 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r--libgfortran/io/open.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c
index 54595097049..7e42cc6a2c8 100644
--- a/libgfortran/io/open.c
+++ b/libgfortran/io/open.c
@@ -144,9 +144,10 @@ edit_modes (st_parameter_open *opp, gfc_unit * u, unit_flags * flags)
/* Status must be OLD if present. */
- if (flags->status != STATUS_UNSPECIFIED && flags->status != STATUS_OLD)
+ if (flags->status != STATUS_UNSPECIFIED && flags->status != STATUS_OLD &&
+ flags->status != STATUS_UNKNOWN)
generate_error (&opp->common, ERROR_BAD_OPTION,
- "OPEN statement must have a STATUS of OLD");
+ "OPEN statement must have a STATUS of OLD or UNKNOWN");
if (u->flags.form == FORM_UNFORMATTED)
{