Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#908 closed bug (fixed)

Deriving MPTC panic: tcSplitTyConApp

Reported by: bjorn@… Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Current GHC HEAD panics when trying to compile test drv020 (added by me):

$ compiler/stage1/ghc-inplace -no-recomp -c -fglasgow-exts testsuite/tests/ghc-regress/deriving/should_compile/drv020.hs
ghc-6.5: panic! (the 'impossible' happened)
  (GHC version 6.5 for i386-apple-darwin):
        tcSplitTyConApp
    {main:ShouldSucceed.MonadState{tc rdb} base:GHC.Base.Int{(w) tc 3J}
                                           <nt>main:ShouldSucceed.Foo{tc rat}}

It seems to have problems with this declaration:

newtype Foo a = MkFoo (State Int a)
 deriving (Monad, MonadState Int)

Change History (3)

comment:1 Changed 9 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

Fixed, thank you.

Simon

comment:2 Changed 7 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 7 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.