[GHC] #11240: Simplifier ticks exhausted on Y combinator

#11240: Simplifier ticks exhausted on Y combinator -------------------------------------+------------------------------------- Reporter: sweirich | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The code from this stackoverflow question: https://programmers.stackexchange.com/questions/215712/type-checking-and- recursive-types-writing-the-y-combinator-in-haskell-ocaml i.e. {{{#!hs newtype Mu a = Roll { unroll :: Mu a -> a } fix :: (a -> a) -> a fix = \f -> (\x -> f (unroll x x)) $ Roll (\x -> f (unroll x x)) }}} produces the following output when compiled with GHC 7.10.2 or 7.10.3: {{{ sweirich$ ghc --make Mu.hs [1 of 1] Compiling Mu ( Mu.hs, Mu.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.10.3 for x86_64-apple-darwin): Simplifier ticks exhausted When trying UnfoldingDone a_sml To increase the limit, use -fsimpl-tick-factor=N (default 100) If you need to do this, let GHC HQ know, and what factor you needed To see detailed counts use -ddump-simpl-stats Total ticks: 4962 Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} The code compiles with newtype replaces by data. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11240 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11240: Simplifier ticks exhausted on Y combinator -------------------------------------+------------------------------------- Reporter: sweirich | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 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 goldfire): Could this be related to the third bullet under [https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/bugs.html Sec 13.2.1] in the manual? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11240#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11240: Simplifier ticks exhausted on Y combinator -------------------------------------+------------------------------------- Reporter: sweirich | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #424 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * related: => #424 Comment: Replying to [comment:1 goldfire]:
Could this be related to the third bullet under [https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/bugs.html Sec 13.2.1] in the manual?
Indeed. See also #8833, #3872, #5400, #5448, #5722, #7057, #7369, #9235 (copied from [wiki:Status/SLPJ-Tickets#Inlining]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11240#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC