[GHC] #3396: Parsing LANGUAGE pragma causes GHC panic
GHC
trac at galois.com
Sun Jul 26 07:30:53 EDT 2009
#3396: Parsing LANGUAGE pragma causes GHC panic
-------------------+--------------------------------------------------------
Reporter: radekm | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.10.4 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: Unknown/Multiple
-------------------+--------------------------------------------------------
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).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3396>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list