This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34795] inquire statement , direct= specifier incorrectly returns YES



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]