[GHC] #13132: Compilation fails with a panic: get_op runContT
GHC
ghc-devs at haskell.org
Mon Jan 16 01:44:36 UTC 2017
#13132: Compilation fails with a panic: get_op runContT
-------------------------------------+-------------------------------------
Reporter: PoroCYon | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by RyanGlScott):
Here's a minimal test case:
{{{#!hs
module Bug where
newtype ContT r m a = ContT { runContT :: (a -> m r) -> m r }
foo = (`runContT` bar.baz)
}}}
{{{
$ ghc Bug.hs
[1 of 1] Compiling Bug ( Bug.hs, Bug.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-linux):
get_op runContT
}}}
Also reproducible on GHC HEAD.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13132#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list