[GHC] #7034: reading a large double results in zero with ghc-7.4.2

GHC cvs-ghc at haskell.org
Thu Jun 28 14:02:46 CEST 2012


#7034: reading a large double results in zero with ghc-7.4.2
------------------------------+---------------------------------------------
 Reporter:  maeder            |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.2             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 {{{
 Prelude> read "1E100000000000000000000" :: Double
 Infinity
 Prelude> read "1E1000000000000000000000" :: Double
 0.0
 }}}

 This was probably introduced by the fix for #5688.
 Note that #3897 is still open.

 {{{
 Prelude> 1E1000000000000000000000 :: Double
 }}}
 takes too long and sometimes results in 0.0 or in a memory crash

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7034>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list