Ticket #940 (closed bug: fixed)
GADT + impredicative polymorphism => stack overflow
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
