#3095: ghc panic during parsing
--------------------+-------------------------------------------------------
Reporter: pweaver | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: MacOS X | Architecture: x86
--------------------+-------------------------------------------------------
For the following piece of code
{{{
class Bla (forall x . x) where
}}}
the ghc parser yields the appropriate error
{{{
Forall type not allowed as type parameter
}}}
However, if you change the code to this
{{{
class Bla (forall x . x :: *) where
}}}
Then ghc does this:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.1 for i386-apple-darwin):
parser/RdrHsSyn.lhs:(525,4)-(548,64): Non-exhaustive patterns in
function collect
}}}
This is reproducible on ghc-6.8.3 and ghc-6.10.1.
I have only tried it on Mac OS X, x86.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3095>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs