Warnings on hex constants [Mingw-w64/Cygwin]
Angelo Graziosi
angelo.graziosi@alice.it
Mon May 31 13:17:00 GMT 2010
Il 31/05/2010 3.35, Steve Kargl ha scritto:
> On Mon, May 31, 2010 at 01:32:10AM +0200, Angelo Graziosi wrote:
>>
>> Now, If I use gfortran-4.3.4 from Cygwin packages or
>> gfortran-4.6-20100409 from [2], the warnings are *absent* (same command
>> line on same test case).
>>
>> So, should we expect them at this stage of GCC-4.6 development or what else?
>>
>
> What else would you expect given that the F2003 standard states:
I apologize if I do not know all details of the standard... If so stands
the things, out of curiosity, how should it be rewritten the test case I
have reported? It was copy/pasted from page 116 of
http://gcc.gnu.org/onlinedocs/gfortran.pdf.
Just for completeness, on the same PC (AMD64) with GNU/Linux Kubuntu
10.04 64bit, GCC-trunk-20100531, INTEGER(8), in the warning, is
substituted with INTEGER(16).
Regards,
Angelo.
>
> 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.
>
More information about the Fortran
mailing list