[Bug fortran/18026] boz initialization of REALs fails

tobi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Mar 13 19:05:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list