#3433: Omitted # after LANGUAGE pragma causes panic
------------------------+---------------------------------------------------
Reporter:  viritrilbia  |          Owner:                  
    Type:  bug          |         Status:  new             
Priority:  normal       |      Component:  Compiler        
 Version:  6.10.3       |       Severity:  minor           
Keywords:               |       Testcase:                  
      Os:  Linux        |   Architecture:  Unknown/Multiple
------------------------+---------------------------------------------------
 If the # in the closing #-} after a LANGUAGE pragma is omitted, GHC
 panics.  For example, creating a file containing the single line:

 {{{
 {-# LANGUAGE TypeFamilies -}
 }}}

 and passing it to GHC or GHCi produces:

 {{{
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.3 for i386-unknown-linux):
         getOptions'.parseLanguage(1) went past eof token
 }}}

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