Ticket #7035 (closed bug: duplicate)
`deriving instance Generic (HsExpr Id)` raises panic
| Reported by: | Daniel Schuessler | Owned by: | dreixel |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Compiler | Version: | 7.4.2 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | Unknown/Multiple |
| Type of failure: | Compile-time crash | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: | 7255 |
Description
Input file:
{-# LANGUAGE FlexibleInstances, DeriveGeneric, StandaloneDeriving #-}
module GHCGeneric where
import GHC
import GHC.Generics
deriving instance Generic (HsExpr Id)
Result:
GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling GHCGeneric ( /home/daniel/dev/dataflow/GHCGeneric.hs, interpreted )
ghc: panic! (the 'impossible' happened)
(GHC version 7.4.2 for i386-unknown-linux):
tcTyVarDetails ( id{tv a3cX} [tv] :: *{(w) tc 34d} )
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Regards,
Daniel
Change History
Note: See
TracTickets for help on using
tickets.
