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/44931] For INPUT_UNIT, INQUIRE NAME= should not return "stdin"



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


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