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 #7 from jvdelisle at gcc dot gnu dot org  2010-07-25 00:48 -------
test_inquire.f90:17.10:

  inquire(6,file=str1)
          1
Error: INQUIRE statement at (1) cannot contain both FILE and UNIT specifiers

However, with a simple modification to the patch the following works.

  open(6,file="test.dat")
  inquire(6,name=str1)
  if (str1 /= "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]