id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3590,panic (the impossible happened) when compiling with -O2,yairchu,igloo,"when compiling the attached program with -O2 I get the following error:

{{{
[1 of 1] Compiling Main             ( crashTest.hs, crashTest.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for i386-apple-darwin):
	Coercion.splitCoercionKindOf
    ghc-prim:GHC.Prim.left{(w) tc 34B}
      (ghc-prim:GHC.Prim.trans{(w) tc 34y}
         (List-0.3:Data.List.Class.ItemM{tc r28}
            (List-0.3:Control.Monad.ListT.ListT{tc r34}
               (ghc-prim:GHC.Prim.(->){(w) tc 3D} a{tv ayS} [sk]))
            (List-0.3:Control.Monad.ListT.ListT{tc r34}
               (ghc-prim:GHC.Prim.(->){(w) tc 3D} a{tv ayS} [sk]) c{tv ayR} [sk]))
         (ghc-prim:GHC.Prim.(->){(w) tc 3D} a{tv ayS} [sk]
          List-0.3:Control.Monad.ListT.:CoF:R5ItemM{tc r29} List-0.3:Control.Monad.ListT.ListT{tc r34}
                                                              (ghc-prim:GHC.Prim.(->){(w) tc 3D}
                                                                 a{tv ayS} [sk])
                                                              c{tv ayR} [sk]))
    <pred>List-0.3:Data.List.Class.ItemM{tc r28}
            (List-0.3:Control.Monad.ListT.ListT{tc r34}
               (ghc-prim:GHC.Prim.(->){(w) tc 3D} a{tv ayS} [sk]))
            ~
          ghc-prim:GHC.Prim.(->){(w) tc 3D} a{tv ayS} [sk]

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
}}}

When compiling without -O2, it works.
I am using TypeFamilies (for the List class)
",merge,closed,normal,,Compiler,6.10.4,fixed,,,MacOS X,x86,,Unknown,indexed-types/should_compile/T3590,,,
