Is this code legal

Dominique Dhumieres dominiq@lps.ens.fr
Mon Oct 9 09:07:00 GMT 2006


Is the following code legal:

integer i
i = 1
print ('(z20.8)'), i
end

With gfortran 4.2.0 20061007 (OSX 10.3.9) it gives:

 In file format_pb.f90:3

print ('(z20.8)'), i
      1
Error: Syntax error in PRINT statement at (1)

TIA

Dominique



More information about the Fortran mailing list