Warnings on hex constants [Mingw-w64/Cygwin]

Angelo Graziosi angelo.graziosi@alice.it
Sun May 30 23:32:00 GMT 2010


Testing (on Cygwin) Mingw-w64 gfortran from [1], I noticed the following 
warnings:

test_iand.f90 (from last gfortran-4.6 manual)
===========
PROGRAM  test_iand
   INTEGER  ::  a,  b
   DATA  a  /  Z'F'  /,  b  /  Z'3'  /
   WRITE  (*,*)  IAND(a,  b)
END PROGRAM test_iand
===========

$ mingw32-gfortran -Wall test_iand.f90
test_iand.f90:3.34:

   DATA  a  /  Z'F'  /,  b  /  Z'3'  /
                                   1
Warning: Possible change of value in conversion from INTEGER(8) to 
INTEGER(4) at (1)
test_iand.f90:3.18:

   DATA  a  /  Z'F'  /,  b  /  Z'3'  /
                   1
Warning: Possible change of value in conversion from INTEGER(8) to 
INTEGER(4) at (1)
--------------------------------------------

being:

$ mingw32-gfortran -v
[...]
Thread model: win32
gcc version 4.6.0 20100528 (experimental) (GCC)
----------------------------------------------------

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?

Ciao,
Angelo.

---
[1] 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Automated%20Builds/mingw-w32-bin_i686-cygwin-1.7.1-1_20100528.tar.bz2/download

[2] 
http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.6-Cygwin-i686.tar.bz2



More information about the Fortran mailing list