------- Comment #3 from jkrahn at nc dot rr dot com  2010-07-15 21:39 -------
Intel Fortran currently returns the actual device name (e.g. "/dev/pts/3") but
also uses "stdin" if the input is from a pipe. I sent a similar low-priority
bug report to Intel, and they tentatively agree that the "stdin" string is
probably not a good convention. I will let you know if I hear more.

G77 and Sun Fortran treat stdio units as unnamed in all cases (tty or file
I/O), setting NAME='' and NAMED=.FALSE. (Hmm... does gfortran always set
NAMED=TRUE?) 

IMHO, if stdio units have a name, like "/dev/pts/3", it should be used. If no
name is available from the OS, the Fortran side should also be unnamed. Then,
you are just giving Fortran the most accurate info available from the OS.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44931

Reply via email to