[GHC] #14962: "ghc: Out of memory" upon compiling combination of map/foldl/setBit
GHC
ghc-devs at haskell.org
Thu Mar 22 11:27:32 UTC 2018
#14962: "ghc: Out of memory" upon compiling combination of map/foldl/setBit
-------------------------------------+-------------------------------------
Reporter: martijnbastiaan | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: duplicate | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones <simonpj@…>):
In [changeset:"efc844f5b955385d69d8e20b80d38311083a6665/ghc"
efc844f5/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="efc844f5b955385d69d8e20b80d38311083a6665"
Fix over-eager constant folding in bitInteger
The RULE for bitInteger was trying to constant-fold
bitInteger 9223372036854775807#
which meant constructing a gigantic Integer at compile
time. Very bad idea! Easily fixed.
Fixes Trac #14959, #14962.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14962#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list