[GHC] #940: GADT + impredicative polymorphism => stack overflow

GHC trac at galois.com
Fri Oct 13 20:28:53 EDT 2006


#940: GADT + impredicative polymorphism => stack overflow
--------------------------------------+-------------------------------------
  Reporter:  guest                    |          Owner:         
      Type:  bug                      |         Status:  new    
  Priority:  normal                   |      Milestone:         
 Component:  Compiler (Type checker)  |        Version:  6.6    
  Severity:  normal                   |       Keywords:         
Difficulty:  Unknown                  |   Architecture:  Unknown
        Os:  Unknown                  |  
--------------------------------------+-------------------------------------
The following makes the GHC 6.6 type checker loop/overflow:
 {{{
 {-# OPTIONS_GHC -fglasgow-exts #-}
 data Foo a b where F :: a -> Foo () a

 bar :: Foo () (forall a.a) -> ()
 bar (F _) = ()
 }}}
 ghc yields stack overflow, as does ghci. Reloading in GHCi leads to an
 infinite loop.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/940>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list