[GHC] #10057: Ghc panic with syntax error in data declaration.

#10057: Ghc panic with syntax error in data declaration. -------------------------------------+------------------------------------- Reporter: jfs | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 | Type of failure: Compile-time (amd64) | crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- Given a spurious "type" after an empty data declaration member list causes my GHC (Debian) to crash. -- test file -- module Test where data X = X {} X -- end test file -- $ ghc Test [1 of 1] Compiling Test ( Test.hs, Test.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-unknown-linux): tc_hs_type: record Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10057 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10057: Ghc panic with syntax error in data declaration. -------------------------------------+------------------------------------- Reporter: jfs | Owner: Type: bug | Status: closed Priority: low | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 Type of failure: Compile-time | (amd64) crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => fixed Comment: Thanks for the report, but this is already fixed in 7.8: {{{ rwbarton@morphism:/tmp$ ghc Test [1 of 1] Compiling Test ( Test.hs, Test.o ) Test.hs:2:12: Record syntax is illegal here: {} }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10057#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC