Opened 5 years ago

Closed 5 years ago

#10057 closed bug (fixed)

Ghc panic with syntax error in data declaration.

Reported by: jfs Owned by:
Priority: low Milestone:
Component: Compiler Version: 7.6.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86_64 (amd64)
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

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

Change History (1)

comment:1 Changed 5 years ago by rwbarton

Resolution: fixed
Status: newclosed

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: {}
Note: See TracTickets for help on using tickets.