
#14959: Heap overflow in optimizer -------------------------------------+------------------------------------- Reporter: darchon | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.4.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by darchon): Some notes which I forgot to mention: * Result need to be `Integer`, no heap overflow on `Int` or `Word` * The folded computation needs to be `setBit`, no heap overflow on `+` or `div` * The `[0..]` needs to be the first argument of `zip`, no heap overflow on `zip [1] [0..]` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14959#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler