This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29471] Warn with -std=f95/f2003 when BOZ is used at invalid places
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2006 17:12:46 -0000
- Subject: [Bug fortran/29471] Warn with -std=f95/f2003 when BOZ is used at invalid places
- References: <bug-29471-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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