http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48976
Summary: INQUIRE with STREAM= not supported
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Fortran 2003/2008 support INQUIRE for STREAM:
"9.10.2.31 STREAM= specifier in the INQUIRE statement
"The scalar-default-char-variable in the STREAM= specifier is assigned the
value YES if STREAM is included in the set of allowed access methods for the
file, NO if STREAM is not included in the set of allowed access methods for the
file, and UNKNOWN if the processor is unable to determine whether STREAM is
included in the set of allowed access methods for the file or if the unit
identified by file-unit-number is not connected to a file."
However, gfortran rejects it with:
INQUIRE(99, stream=str)
1
Error: Syntax error in INQUIRE statement at (1)
character(len=20) :: str
INQUIRE(99, stream=str)
end