Smith, David writes:
> Is the following program standard-conforming in Fortran-2000?
Yes, unless I missed something.
> Several F-95 compilers run it with no problems, although with debug
> options enabled some give an error message about the recursive write.
It is not, however, standard f90/f95 (or f77, once the other f90'isms
are converted down to f77 syntax). As you note, it may work with some
compilers. There have certainly existed compilers that seriously
crashed and burned when given constructs like this. Questions from
users wondering why it didn't work with some compiler or other are
asked from time to time on comp.lang.fortran.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|