Ghc panic with syntax error in data declaration.
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
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | low |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |