[Bug fortran/44931] For INPUT_UNIT, INQUIRE NAME= should not return "stdin"
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 25 00:48:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list