Malformed LANGUAGE pragma causes GHC panic
Hi, I tried to compile file starting with {-# LANGUAGE -XExistentialQuantification #-} which is of course wrong, but GHC should handle this more gracefully than
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.2 for i386-unknown-linux):
getOptions'.parseLanguage(2) went past eof token
The 6.8.2 version surprisingly works better:
test.hs:1:0: cannot parse LANGUAGE pragma
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |