logo       

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

lang.haskell.glasgow.bugs

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

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise