> Paul J W Bolton writes:
>
> Salford Fortran 77, even with the /ANSI option, allows a syntax
> of the following form (specifically in this case within a BLOCKDATA
> program section):
>
> DOUBLE PRECISION L1(3)
> ................................................................
> DATA /1.0,0.0,(1.0/3.0)/
>
> Salford Fortran 90 gives the error message "syntax error malformed
> statement" on encountering the second line in this example. Why is a
> line which was acceptable in FTN77 not acceptable in FTN90?
Was this DATA statement really acceptable? I think it needed to have at
least a variable somethere in the statement: e.g.
DATA L1 / 1.0,. . .
But then these constants are single precision. It might be worth
checking whether they are initializing L1, L2, and L3, or just
L1 and half of L2 (and none of L3).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|