#7197: ghc panic: Irrefutable pattern failed
--------------------------------+-------------------------------------------
Reporter: illusionoflife | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: Compile-time crash | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------------+-------------------------------------------
I get following error, when trying to compile following snippet:
{{{
module BooleanFunction where
class BooleanFunction a where
arity :: a -> Int
instance BooleanFunction Bool where
arity _ = 0
instance BooleanFunction a => BooleanFunction Bool -> a where
arity _ = 1 + arity a
}}}
{{{
[1 of 1] Compiling BooleanFunction ( BooleanFunction.hs,
BooleanFunction.o )
ghc: panic! (the 'impossible' happened)
(GHC version 7.4.2 for x86_64-unknown-linux):
compiler/rename/RnSource.lhs:430:14-81: Irrefutable pattern failed
for pattern Data.Maybe.Just (inst_tyvars,
_,
SrcLoc.L _ cls,
_)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7197>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs