Parsing LANGUAGE pragma causes GHC panic
Parsing LANGUAGE pragma like this (notice the '*'):
{-# LANGUAGE * #-}
causes:
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for i386-unknown-linux):
getOptions'.parseLanguage(2) went past eof token
Instead of the '*' you can write another character like '+', '-' etc. I'm using GHC from Arch Linux's repository (package: ghc 6.10.4-1).
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | Unknown/Multiple |