Warnings on hex constants [Mingw-w64/Cygwin]
N.M. Maclaren
nmm1@cam.ac.uk
Mon May 31 11:31:00 GMT 2010
On May 31 2010, Steve Kargl wrote:
>
>What else would you expect given that the F2003 standard states:
>
> If a data-stmt-constant is a boz-literal-constant, the corresponding
> variable shall be of type integer. The boz-literal-constant is treated
> as if it were an int-literal-constant with a kind-param that specifies
> the representation method with the largest decimal exponent range
> supported by the processor.
>
>Previous versions of gfortran may not have had the ability
>to see the conversion.
Well, it's one of two things one might expect. The other being that
initialisation (or even constant conversion, generally) is treated
specially, because the compiler can tell whether the conversion might
cause trouble. That's more work, of course.
Regards,
Nick Maclaren.
More information about the Fortran
mailing list