The F2003 spec has the following not about the NAME= specifier: -------- NOTE 9.63 If this specifier appears in an INQUIRE by file statement, its value is not necessarily the same as the name given in the FILE= specifier. However, the value returned shall be suitable for use as the value of the file-name-expr in the FILE= specifier in an OPEN statement.
The processor may return a file name qualified by a user identification, device, directory, or other relevant information. -------- The second part of the note suggests that a dummy name like "stdin" may be acceptable, but it does not conform to the first part of the note. OPEN will accept "stdin" as a normal filename. The easiest implementation is to return the actual stdin device name. Otherwise, just leave it unnamed. Obviously, the same is true of standard output and error units. -- Summary: For INPUT_UNIT, INQUIRE NAME= should not return "stdin" Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jkrahn at nc dot rr dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44931