GHC shouting: panic!
This program makes the impossible happen:
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeInType #-}
import GHC.Types
data Bug :: (f x -> Type) -> Type where
Bug :: forall
(r::h -> forall x. f x -> Type)
(a::f x)
. (r::((f x -> Type) -> Type) -> forall x. f x -> Type) Bug a
-> Bug (r::f x -> Type)
And asked for reporting the error:
ghc: panic! (the 'impossible' happened)
(GHC version 8.4.1 for x86_64-unknown-linux):
piResultTy
k_aozeA[tau:1]
(x_aozeN[sk:2] |> {co_aozeO})
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in ghc:Outputable
pprPanic, called at compiler/types/Type.hs:950:35 in ghc:Type
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |