[GHC] #14110: GHC Panic on over-saturated associated type family

#14110: GHC Panic on over-saturated associated type family -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If we over-saturate a type family {{{#!hs {-# Language TypeFamilies, ScopedTypeVariables, PolyKinds, DataKinds #-} import Data.Kind class R (c :: k -> Constraint) where type R_ (c :: k -> Constraint) :: k -> Type instance R Eq where type R_ Eq a = a -> a -> Bool }}} we get {{{ $ ghci -ignore-dot-ghci test.hs GHCi, version 8.3.20170605: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Main ( test.hs, interpreted ) ghc: panic! (the 'impossible' happened) (GHC version 8.3.20170605 for x86_64-unknown-linux): repSplitAppTys a_a2qu[sk:1] a_a2qu[sk:1] -> Bool [] Call stack: CallStack (from HasCallStack): prettyCurrentCallStack, called at compiler/utils/Outputable.hs:1133:58 in ghc:Outputable callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc:Outputable pprPanic, called at compiler/types/Type.hs:809:9 in ghc:Type Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14110 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14110: GHC Panic on over-saturated associated type family -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: 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 goldfire): Already fixed in HEAD, most likely with my recent raft of changes. I'm not in a good state to add the test-case though -- could someone else? Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14110#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14110: GHC Panic on over-saturated associated type family -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Iceland_jack Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Iceland_jack): * owner: (none) => Iceland_jack Comment: I'll do it when I get home -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14110#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14110: GHC Panic on over-saturated associated type family
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: Iceland_jack
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
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 Simon Peyton Jones

#14110: GHC Panic on over-saturated associated type family -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Iceland_jack Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | polykinds/T14110 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => polykinds/T14110 * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14110#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14110: GHC Panic on over-saturated associated type family -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Iceland_jack Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | polykinds/T14110 Blocked By: | Blocking: Related Tickets: #13819 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * related: => #13819 Comment: This was triggered by #13819. It's definitely fixed in GHC 8.4, since it was fixed in commit c2417b87ff59c92fbfa8eceeff2a0d6152b11a47 (`Fix #13819 by refactoring TypeEqOrigin.uo_thing`). It happens to be fixed in GHC 8.2.2, too (see https://ghc.haskell.org/trac/ghc/ticket/13819#comment:16). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14110#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC