Re: BOZ literal constants, a puzzle for us Standard-loving types.



Steven G. Kargl wrote:


What do you mean by fails? You need to provide a complete
compilable code and the error. Also note that gfortran is
a Fortran 95 compiler with extensions that include BOZ.


data i/int(123)/
1
Error: Symbol 'int' must be a PARAMETER in DATA statement at (1)
boz.f:4.17:

data r/real(1.23)/
1
Error: Symbol 'real' must be a PARAMETER in DATA statement at (1)
pion> cat boz.f
program test
integer i
data i/int(123)/
data r/real(1.23)/
print *, i, r
end

-- glen

.