diff options
author | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-30 18:47:54 +0000 |
---|---|---|
committer | tobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-30 18:47:54 +0000 |
commit | 36592fa991a4c4f5a91c170338df26274903e430 (patch) | |
tree | 49646f39944d33cfef8f86c09e2141a3106a4783 /libgfortran/io | |
parent | 535e833b7cd413b3faab0c3b5b8ef1dd9a160deb (diff) | |
download | gcc-36592fa991a4c4f5a91c170338df26274903e430.tar.gz |
2005-09-30 Janne Blomqvist <jblomqvi@cc.hut.fi>
libgfortran/
PR 24112
* io/open.c (edit_modes): Check for correct flag.
gcc/testsuite/
PR 24112
* gfortran.dg/open_status_1.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c index 82d5a355e0d..e1e42ad9370 100644 --- a/libgfortran/io/open.c +++ b/libgfortran/io/open.c @@ -120,7 +120,7 @@ edit_modes (gfc_unit * u, unit_flags * flags) /* Complain about attempts to change the unchangeable. */ if (flags->status != STATUS_UNSPECIFIED && - u->flags.status != flags->position) + u->flags.status != flags->status) generate_error (ERROR_BAD_OPTION, "Cannot change STATUS parameter in OPEN statement"); |