[GHC] #3213: Failure in parsing a malformed LANGUAGE pragma

GHC trac at galois.com
Sat May 9 00:08:17 EDT 2009


#3213: Failure in parsing a malformed LANGUAGE pragma
-----------------------------+----------------------------------------------
Reporter:  pumpkin           |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.2            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 Very simple failure case!

 {{{
 {-# LANGUAGE - #-}
 module Hs where

 schwee = "schwoo"

 {- results in output@
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.2 for i386-unknown-linux):
         getOptions'.parseLanguage(2) went past eof token

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

 when trying ghc --make Hs
 also blows up if you replace that - with, say, "-XBangpatterns" or
 whatever.
 -}
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3213>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list