#2735: ghc panic with Haskell 98 program (applyTypeToArgs?)
---------------------------------+------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.11 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown/Multiple | Os: Unknown/Multiple
---------------------------------+------------------------------------------
This code,
{{{
module Bug where
data S = S { s1 :: (), s2 :: () }
f s = s { s1 = (), s2 = s1 s }
}}}
crashes ghc:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 6.11.20081031 for i386-unknown-linux):
applyTypeToArgs
ghc-prim:GHC.Unit.(){(w) v 71} [gid] wild{v sfY} [lid]
ghc-prim:GHC.Unit.(){(w) tc 40}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
(Example trimmed down from a compile error in language-c. ghc 6.10 is not
affected.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2735>
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