[GHC] #11356: GHC panic

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (Type checker) | Keywords: | Operating System: Linux Architecture: x86 | Type of failure: Compile-time | crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The attached file causes GHC (version 8.1.20160102) panic. I tried shrinking, attached code is bogus at this point. Interestingly inlining the type synonym `T = Nat` into Category's superclass context fixes the panic, and causes a regular error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic --------------------------------------------+--------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type checker) | Version: 8.1 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Compile-time crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------------+--------------------------- Changes (by Iceland_jack): * Attachment "Foo.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic --------------------------------------------+--------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type checker) | Version: 8.1 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: Compile-time crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------------+--------------------------- Changes (by Iceland_jack): * Attachment "Foo.log" added. ghci -ignore-dot-ghci -v /tmp/Foo.hs &> /tmp/Foo.log -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * keywords: => TypeInType -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I'm on this -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version: 8.1
checker) |
Resolution: | Keywords: TypeInType
Operating System: Linux | Architecture: x86
Type of failure: Compile-time | Test Case:
crash |
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | typecheck/should_fail/T11356 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => typecheck/should_fail/T11356 * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | typecheck/should_fail/T11356 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler (Type | Version: 8.1 checker) | Resolution: fixed | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | typecheck/should_fail/T11356 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged as d60b89b9a0f5212e35210f6e66d119ca025f7a5c. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11356: GHC panic -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler (Type | Version: 8.1 checker) | Resolution: fixed | Keywords: TypeInType Operating System: Linux | Architecture: x86 Type of failure: Compile-time | Test Case: crash | typecheck/should_fail/T11356 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Great -- thanks. I had been wanting to do a similar refactoring now that we have `TcTyCon`. I actually think there's even more we can do here, reducing the knot to including only the final zonk. Zonking a tycon would just look up the loopy tycon. But no more knot-tied tycons during typechecking and no more `mkNakedXXX` functions. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11356#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC