reading a large double results in zero with ghc-7.4.2
Prelude> read "1E100000000000000000000" :: Double
Infinity
Prelude> read "1E1000000000000000000000" :: Double
0.0
This was probably introduced by the fix for #5688 (closed). Note that #3897 (closed) is still open.
Prelude> 1E1000000000000000000000 :: Double
takes too long and sometimes results in 0.0 or in a memory crash
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |