#3442: GHC panics if closing #-} for a LANGUAGE pragma is not on the same line
-----------------------------+----------------------------------------------
Reporter: lilac | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.10.3 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
This came up on #haskell:
{{{
{-#
LANGUAGE ExistentialQuantification
#-}
main = undefined
}}}
This sends ghc-6.10.3 into a tailspin:
{{{
$ ghc --make foo.hs
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.3 for x86_64-unknown-linux):
getOptions'.parseLanguage(1) went past eof token
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
Moving the #-} onto the LANGUAGE line fixes this.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3442>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs