#3287: Malformed LANGUAGE pragma causes GHC panic
-----------------------------+----------------------------------------------
Reporter:  caitt             |          Owner:                   
    Type:  bug               |         Status:  new              
Priority:  normal            |      Component:  Compiler (Parser)
 Version:  6.10.2            |       Severity:  minor            
Keywords:                    |       Testcase:                   
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple 
-----------------------------+----------------------------------------------
 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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3287>
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

Reply via email to