| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, July 27, 2000 4:56 PM
| To: [EMAIL PROTECTED]
| Subject: StablePtrs and a NCG bug
| 
| 
| module Examples where
| import Foreign
| f x = return x >>= deRefStablePtr
| 
| [qrczak ~/QForeign]$ ghc -c -fglasgow-exts -O -fasm-x86 Examples.hs
| 
| panic! (the `impossible' happened):
|         getRegister(x86,unary primop)
|     (Prim deRefStablePtrzh Temp(B0StgStablePtr))

This means that the deRefStablePtrzh primop isn't implemented in the
NCG.  You can work around this by going via C (-fvia-C).  I guess
we should fix this, or at least produce a helpful error message.

J

Reply via email to