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

GHC ghc-devs at haskell.org
Sun Feb 1 18:29:07 UTC 2015


#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


More information about the ghc-tickets mailing list