Warnings on hex constants [Mingw-w64/Cygwin]
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon May 31 16:16:00 GMT 2010
On Mon, May 31, 2010 at 05:56:28PM +0200, Angelo Graziosi wrote:
> Il 31/05/2010 17.10, Steve Kargl ha scritto:
> >
> >If you insist on BOZ, then try
> >
> >PROGRAM test_iand
> > INTEGER, SAVE :: a, b
> > a = int(Z'F')
> > b = int(Z'3')
> > WRITE (*,*) IAND(a, b)
> >END PROGRAM test_iand
> >
> >laptop:kargl[239] gfc4x -o z -Wall q.f90
> >laptop:kargl[240] ./z
> > 3
> >
> or this:
>
> PROGRAM test_iand
> INTEGER :: a = int(Z'F'),b = int(Z'3')
> WRITE(*,*) IAND(a,b)
> END PROGRAM test_iand
>
These programs are essentially the same thing.
> Perhaps the above examples should substitute that at page 116 of the
> cited manual (see above).
Feel free to open a bug report. If you have assignment
paperwork on file FSF, attach a patch. :)
--
Steve
More information about the Fortran
mailing list