This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34795] inquire statement , direct= specifier incorrectly returns YES
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2008 19:12:27 -0000
- Subject: [Bug fortran/34795] inquire statement , direct= specifier incorrectly returns YES
- References: <bug-34795-15636@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-15 19:12 -------
| correct output (produced by g77)
| default open drct=NO opened= T access=SEQUENTIAL
| Sequent open drct=NO opened= T access=SEQUENTIAL
| direct open drct=YES opened= T access=DIRECT
How do you know which answer is correct? I think this is the same problem as
formatted and unformatted: The answers are only correct with a certain
probability.
One can even open an UNFORMATTED file as FORMATTED though reading probably
produces only garbage.
As starting point I would recommend to read:
http://groups.google.com/group/comp.lang.fortran/msg/b2ab0a6e106d977c
(and maybe also the complete thread).
If you can then explain why a certain value is better than another, we might
change it. (By the way, the only true answer is "UNKNOWN".)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34795