[Bug fortran/29471] Warn with -std=f95/f2003 when BOZ is used at invalid places

tobias dot burnus at physik dot fu-berlin dot de gcc-bugzilla@gcc.gnu.org
Mon Oct 16 17:12:00 GMT 2006



------- Comment #3 from tobias dot burnus at physik dot fu-berlin dot de  2006-10-16 17:12 -------
(In reply to comment #2)
> > Fortran 2003:
> >   a = real(z'F')
> >     = 2.1019477E-44
> 
> Are you sure this is the only correct value?  The F2003 says nothing
> about the other 28 bits.  It also says nothing about whether z'F'
> applies to most significant bits or least significant bits of the
> 32-bit real.

Well, that is the value ifort gave me (using "-switch fe_new_BOZ_constants"); I
think it is a valid value, but I'm not sure whether it is the only one.

As NAG f95, g95 and sunf95 do not yet support F2003's BOZ, I cannot compare
with what they give. I also found the F2003 standard not so detailed, but maybe
I missed the right spot. Best to ask at comp.lang.fortran.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29471



More information about the Gcc-bugs mailing list