This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32646] INQUIRE (by UNIT) for (un)formatted always returns YES...
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2007 06:22:42 -0000
- Subject: [Bug fortran/32646] INQUIRE (by UNIT) for (un)formatted always returns YES...
- References: <bug-32646-13399@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-07-07 06:22 -------
We have addressed this in previous bug reports. Any unit "can be" accessed as
formatted or unformatted if one chooses to do so, this is why we answer yes.
In other words, it is "allowed"
This should not be confused with actually opening a file or unit as
(un)formatted. In that case the choice has been made. Once that choice has
been made the specific inquire is irrelevant. There could be a unit that is
related to a device that would not allow one of these forms. For example, one
that is limited to 128 characters, could not very well be used for unformatted.
(such as a teletype machine.)
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32646