[GHC] #12041: GHC panics on "print_equality ~"

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.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: -------------------------------------+------------------------------------- {{{#!hs {-# Language PolyKinds, TypeFamilies #-} import Data.Kind class Category (p :: i -> i -> Type) where type Ob p :: i -> Constraint data I a b instance Category I where type Ob I = (~) Int }}} fails with {{{ $ ghci -ignore-dot-ghci /tmp/Error.hs GHCi, version 8.1.20160503: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Main ( /tmp/Error.hs, interpreted ) /tmp/Error.hs:10:15: error:ghc: panic! (the 'impossible' happened) (GHC version 8.1.20160503 for x86_64-unknown-linux): print_equality ~ Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.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 Iceland_jack): Doesn't happen if {{{#!hs data I (a :: Type) (b :: k) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.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 simonpj): * owner: => simonpj Comment: I'm on this -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.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 bgamari): * version: 8.1 => 8.0.1 * milestone: => 8.0.2 Comment: This also happens in 8.0.1. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.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 Iceland_jack): Replying to [comment:1 Iceland_jack]:
Doesn't happen if
{{{#!hs data I (a :: Type) (b :: k) }}}
also doesn't happen if {{{#!hs data I (a :: k) (b :: Type) }}} ---- Also test whether it panics on the `:kind!` command: {{{#!hs data I (a :: Type) (b :: Type) instance Category I where type Ob I = (~) Int }}} {{{ ghci> :kind! Ob I ghc: panic! (the 'impossible' happened) (GHC version 8.0.0.20160511 for x86_64-unknown-linux): print_equality ~ Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~"
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: simonpj
Type: bug | Status: new
Priority: normal | Milestone: 8.0.2
Component: Compiler | Version: 8.0.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

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/T12041 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * testcase: => indexed-types/should_fail/T12041 * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: merge Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/T12041 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: closed => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12041: GHC panics on "print_equality ~" -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: simonpj Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/T12041 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed Comment: Merged to `ghc-8.0` as e9f29008ed5ab4d368138f04338e93dee2713257. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12041#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC