#1181: GHC API load panic
------------------------+---------------------------------------------------
    Reporter:  judahj   |       Owner:         
        Type:  bug      |      Status:  new    
    Priority:  normal   |   Milestone:  6.8    
   Component:  GHC API  |     Version:  6.7    
    Severity:  normal   |    Keywords:         
  Difficulty:  Unknown  |    Testcase:         
Architecture:  powerpc  |          Os:  MacOS X
------------------------+---------------------------------------------------
The attached program {{{APILoad.hs}}}, which works with ghc-6.6,  panics
 on the HEAD when trying to load a module using the GHC API.  Adding a call
 to {{{parseStaticFlags}}} prevents the panic, but it doesn't seem like
 that should be necessary when using the API.

 {{{
 ~: ghc-6.7.20070215 --make APILoad.hs -package ghc
 [1 of 1] Compiling Main             ( APILoad.hs, APILoad.o )
 Linking APILoad ...
 ~/tmp/unsplice: ./APILoad Foo.hs
 Loading...
 APILoad: panic! (the 'impossible' happened)
   (GHC version 6.7.20070215 for powerpc-apple-darwin):
         a static opt was looked at too early!

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


 Foo.hs:
 {{{
 module Foo where

 foo = 4
 }}}

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