#5189: incorrect pragma syntax leeds to panic
--------------------------+-------------------------------------------------
    Reporter:  zickzackv  |       Owner:              
        Type:  bug        |      Status:  new         
    Priority:  normal     |   Component:  Compiler    
     Version:  6.10.4     |    Keywords:  pragma panic
    Testcase:             |   Blockedby:              
          Os:  MacOS X    |    Blocking:              
Architecture:  x86        |     Failure:  GHCi crash  
--------------------------+-------------------------------------------------
 When using a wrong pragma syntax  like:

 {-# LANGUAGE IncoherentInstances -#}
 {-# LANGUAGE OverlappingInstances #-} -- wrong pragma syntax!
 {-# LANGUAGE NoMonomorphismRestriction #-}
 {-# LANGUAGE MultiParamTypeClasses #-}

 This leeds to the following ghc panic:

 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.4 for x86_64-apple-darwin):
         getOptions'.parseLanguage(1) went past eof token

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

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