This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44931] For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
- 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: 24 Jul 2010 08:22:30 -0000
- Subject: [Bug fortran/44931] For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
- References: <bug-44931-14229@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from burnus at gcc dot gnu dot org 2010-07-24 08:22 -------
(In reply to comment #5)
> Created an attachment (id=21296)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21296&action=view) [edit]
> Proposed pathc
+ if (u->unit_number == options.stdin_unit
+ || u->unit_number == options.stdout_unit
+ || u->unit_number == options.stderr_unit)
Will this work for
open(6,file="test.dat")
inquire(6,file=str)
if (str /= "test.dat") call abort()
?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44931