This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/18026] boz initialization of REALs fails


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]