Ticket #1181 (closed bug: fixed)
GHC API load panic
| Reported by: | judahj | Owned by: | simonmar |
|---|---|---|---|
| Priority: | high | Milestone: | 6.8.1 |
| Component: | GHC API | Version: | 6.7 |
| Keywords: | Cc: | ||
| Operating System: | MacOS X | Architecture: | powerpc |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

