[Bug fortran/48976] New: INQUIRE with STREAM= not supported

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 12 13:02:00 GMT 2011


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: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: jvdelisle@gcc.gnu.org


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



More information about the Gcc-bugs mailing list