Can an internal file be used for f2003 namelist I/O? The f95 standard
9.2.2.2 prohibits it. If there is a corresponding prohibition in the
f2003 standard I failed to find it. MR&C "Fortran 95/2003 Explained"
9.10 mentions the f95 rule but chapters 19 and 20 say nothing about
it having changed in f2003. G95 compiles and runs the test program
below unless one uses the -std=f95 option, but Sun and Intel f95 and
gfortran won't, not even if one uses their -f2003 or -std03 or
-std=f2003 options.
character line*80
namelist /stuff/ n
n = 666
write(line,nml=stuff)
print *,trim(line)
end
If internal namelist I/O is still forbidden in f2003, then g95 would
seem to be allowing it as an extension. If internal namelist is OK in
f2003 then it appears to be a feature not implemented yet by the other
three compilers. None of the four claims to implement all of f2003 yet.
-- John Harper, School of Mathematics, Statistics and Computer Science,
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail john.harper@[EMAIL PROTECTED]
phone (+64)(4)463 6780 fax (+64)(4)463 5045


|