#3774: panic - caused by language pragma closed in first column
---------------------------------+------------------------------------------
    Reporter:  andrewufrank      |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Component:  Compiler          
     Version:  6.10.4            |    Keywords:  language pragma   
          Os:  Unknown/Multiple  |    Testcase:                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
---------------------------------+------------------------------------------
 if the language pragma is closed on a new line panic breaks out.
 adding two spaces before the #-} is sufficient to compile.

 used 6.10.4 on ubuntu 9.04

 here the output and the program:

 fr...@atlantaj:~/leksahworkspace/spaceTimeDuality$ ghc panic.hs
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.4 for i386-unknown-linux):
         getOptions'.parseLanguage(1) went past eof token

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

 {-# LANGUAGE TypeSynonymInstances
 #-}

 module SpaceTimeDuality where

 main = do
                 return ()

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