ghc: panic
A friendly compiler asked me to report
{-# Language KindSignatures, TypeInType, MagicHash #-}
module A where
import Data.Kind
import GHC.Types
i :: (a :: TYPE DoubleRep) -> a
i x = x
main = print (D# (i 3.0##))
panics
$ ghci -ignore-dot-ghci /tmp/A.hs
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling A ( /tmp/A.hs, interpreted )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
getIdFromTrivialExpr 3.0##
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |