FFI problems?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Dec 18 07:21:34 EST 2000


I just tried to compile this:

> module Fib where
> foreign export fib :: Int -> Int
> fib 0 = 1
> fib 1 = 1
> fib n = fib (n-1) + fib (n-2)

using GHC 4.08 under Linux,

> $ ghc -c Fib.hs -fglasgow-exts
>
> panic! (the `impossible' happened):
> 	tcLookupGlobalValue: <THIS>.PrelIOBase.returnIO{-0B,s-}
> 
> Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org.

Can someone check whether this has been fixed in more recent versions
of the compiler?

Regards,
    Malcolm




More information about the Glasgow-haskell-bugs mailing list