[GHC] #11336: GHC craches on this combination of ViewPatterns and PatternSynonyms

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Compile-time Unknown/Multiple | crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The attached file crashes: {{{ $ ghc Bug.hs [1 of 1] Compiling Bug ( Bug.hs, Bug.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.10.2 for x86_64-unknown-linux): Prelude.last: empty list }}} I wasn't able to shrink the example further despite many attepts. Tested on GHC 7.8.3 and 7.10.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by baramoglo): * Attachment "Bug.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by baramoglo): Forgot to say that I'm able to work around the problem by changing the last line to {{{#!hs fun (Sym (prj -> Just B) :$ _) = undefined }}} So this is not a blocker for me. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * keywords: => PatternSynonyms -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Happily this works in HEAD, and hence (I expect -- someone pls check) GHC 8.0. I don't think we'll fix 7.10. Pattern synonyms have had a major re-work since then. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms
-------------------------------------+-------------------------------------
Reporter: baramoglo | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
| PatternSynonyms
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#11336: GHC craches on this combination of ViewPatterns and PatternSynonyms -------------------------------------+------------------------------------- Reporter: baramoglo | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: fixed | Keywords: | PatternSynonyms Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11336#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC