------- Additional Comments From Thomas dot Koenig at online dot de 2004-12-16 11:36 -------
> read *, print_to_file > if (print_to_file) then > open(6,file="stdout") > end if > > Is this possible with ifort? I haven't found anything like that. The discussion on comp.lang.fortran showed that F 2003 has a ISO_FORTRAN_ENV with the predefined named constants INPUT_UNIT and OUTPUT_UNIT, which can be manipulated by the user and which do affect * when they are opened, closed etc. gfortran's current treatment of unit 6 (and, I presume, 5) mirrors this behavior. So, I guess this must the the Right Thing to do. An INVALID resolution for this bug is therefore OK with me. Thomas -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18985