This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18026] boz initialization of REALs fails
- 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: 23 Oct 2006 18:52:05 -0000
- Subject: [Bug fortran/18026] boz initialization of REALs fails
- References: <bug-18026-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from tobias dot burnus at physik dot fu-berlin dot de 2006-10-23 18:52 -------
Cf. also bug 29471.
In the Intel Fortran Compiler
real :: r
data r/some BOZ/
gives the same result as using the Fortran 2003 statement in ifort:
real :: r
r = real(some boz)
(At least with the "-switch fe_new_BOZ_constants".)
Therefore, with Fortran 2003 BOZ support in place, implementing this in
gfortran should then become easier. (Working around will also become easier.(
(As gfortran accepts [integer] BOZ everywhere, it will also have the problem
whether real( z'F' ) is meant as "convert integer BOZ to integer and then to
real" or as "convert real BOZ to real". Ifort gives a default warning for both
-stand f95 and -stand f03, treating the BOZ differently for those two cases.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18026