[GHC] #7384: Panic "ctEvTerm" when using functional dependencies and PolyKinds
GHC
cvs-ghc at haskell.org
Fri Nov 2 03:41:08 CET 2012
#7384: Panic "ctEvTerm" when using functional dependencies and PolyKinds
------------------------------+---------------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords: FunctionalDependencies PolyKinds
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
The following code causes a panic:
{{{
{-# LANGUAGE FunctionalDependencies, PolyKinds #-}
class Baz a b | a -> b where
bar :: a -> ()
instance Baz Bool Bool where
bar _ = ()
foo = bar False
}}}
The panic reads:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 7.7.20121031 for x86_64-apple-darwin):
ctEvTerm: derived constraint cannot have id
<<details unavailable>>
}}}
The panic does not happen without {{{-XPolyKinds}}}.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7384>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list