Opened 11 years ago

Closed 11 years ago

Last modified 9 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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):
    {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 11 years ago by simonpj

Resolution: fixed
Status: newclosed

Fixed, thank you.


comment:2 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.