[GHC] #15881: GHC Panic: data A n (a :: n) :: a -> Type

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Keywords: TypeInType | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{#!hs {-# Language KindSignatures #-} {-# Language PolyKinds #-} import Data.Kind data A n (a :: n) :: a -> Type }}} causes a panic on 8.7.20181017 {{{ $ ~/code/headghc/inplace/bin/ghc-stage2 --interactive -ignore-dot-ghci 665_bug.hs GHCi, version 8.7.20181017: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Main ( 665_bug.hs, interpreted ) ghc-stage2: panic! (the 'impossible' happened) (GHC version 8.7.20181017 for x86_64-unknown-linux): ASSERT failed! Type-correct unfilled coercion hole {co_a1xR} Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler/utils/Outputable.hs:1160:37 in ghc:Outputable pprPanic, called at compiler/utils/Outputable.hs:1219:5 in ghc:Outputable assertPprPanic, called at compiler/typecheck/TcHsSyn.hs:1805:99 in ghc:TcHsSyn Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}} and an assertion failure in 8.7.20181029 {{{ $ ~/code/unmodifiedghc/inplace/bin/ghc-stage2 --interactive -ignore-dot- ghci 665_bug.hs GHCi, version 8.7.20181029: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Main ( 665_bug.hs, interpreted ) *** Exception: ASSERT failed! file compiler/types/TyCon.hs, line 420
}}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): goes away if `a` is unused `data A n (a :: n) :: Type` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Ah I forgot to say, `headghc` has the [https://phabricator.haskell.org/D5229 visible kind application] patch but `unmodified` is HEAD -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Same happens with {{{#!hs {-# Language KindSignatures #-} {-# Language PolyKinds #-} import Data.Kind data A n (a :: n n) :: Type }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I'm fairly confident that this is a duplicate of #15881. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): #15881 is this ticket. Did you mean #15804? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Oops. Yes, I meant #15804. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #15804 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * related: => #15804 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15881: GHC Panic: data A n (a :: n) :: a -> Type
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.3
Component: Compiler | Version: 8.6.2
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #15804 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#15881: GHC Panic: data A n (a :: n) :: a -> Type -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | polykinds/T15881, T15881a Blocked By: | Blocking: Related Tickets: #15804 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => polykinds/T15881, T15881a * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15881#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC