[GHC] #7943: Malformed record leads to panic

GHC cvs-ghc at haskell.org
Tue May 28 01:22:07 CEST 2013


#7943: Malformed record leads to panic
-------------------------------+--------------------------------------------
Reporter:  scvalex             |          Owner:                  
    Type:  bug                 |         Status:  new             
Priority:  normal              |      Component:  Compiler        
 Version:  7.6.3               |       Keywords:                  
      Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
 Failure:  Compile-time crash  |      Blockedby:                  
Blocking:                      |        Related:                  
-------------------------------+--------------------------------------------
 The following code makes GHC panic (note the extra String after B):

 {{{
 data Foo = A { bar :: String }
          | B String { bar :: String }

 }}}

 {{{
 % runhaskell Bug.hs
 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://hackage.haskell.org/trac/ghc/ticket/7943>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list