This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is this code legal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]