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: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2005 19:05:40 -0000
- Subject: [Bug fortran/18026] boz initialization of REALs fails
- References: <20041015213354.18026.anlauf@hep.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2005-03-13 19:05 -------
While the compile-time error has disappeared, we now give the following
incorrect output at runtime:
[tobi@marktplatz tests]$ ./a.out
9.218868437227405E+018 1.844449227389587E+019
[tobi@marktplatz tests]$
The following testcase gives the expected result, though:
PROGRAM GFCBUG19
integer*8 infi, nani
DOUBLE PRECISION inf, nan
equivalence (infi, inf), (nani, nan)
!c IEEE exceptional values on Intel x87
DATA infi / Z'7FF0000000000000' /
DATA nani / Z'FFF8000000000000' /
print *, inf, nan
END
[tobi@marktplatz tests]$ ./a.out
+Infinity NaN
[tobi@marktplatz tests]$
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|gfortran: regression w.r.t. |boz initialization of REALs
|g77, lacks -ftypeless-boz |fails
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18026