Mike Prager
01-28-2005, 08:21 PM
This is to request that the Lahey compiler warn about cases where precision may be lost by assigning a lower-precision literal constant to a higher-precision variable. Warning about more complex cases of this would be helpful, as well. FTNCHK does this for Fortran 77, but of course that doesn't help users of Fortran 95.
An example:
program foo
double precision F
F = 1.0
end program foo
This post is a result of the issue's being raised on comp.lang.fortran and my finding that LF95 7.1 does not warn about such usage.
An example:
program foo
double precision F
F = 1.0
end program foo
This post is a result of the issue's being raised on comp.lang.fortran and my finding that LF95 7.1 does not warn about such usage.