#2846: GHC crash by type signature
------------------------+---------------------------------------------------
Reporter: mm_freak | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: major
Keywords: crash, type | Testcase:
Os: Linux | Architecture: x86_64 (amd64)
------------------------+---------------------------------------------------
Quick and dirty, this is the bug:
{{{
Prelude> [1,2,3] :: [Num a => a]
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.1 for i386-unknown-linux):
TcTyFuns.flattenType: unexpected PredType
}}}
I'm running Gentoo Linux. I can reproduce this bug in the interpreter as
well as in the compiler. It seems like it happens only with {{{-fglasgow-
exts}}}, and only if you use {{{show}}} on that specific list. It doesn't
happen, if you only use the head or the tail of the list. There is also
no problem with appending something using {{{(++)}}} or consing through
{{{(:)}}}.
This is an amd64 architecture, but I'm using a 32 bits system, so this
should be irrelevant.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2846>
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