Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal compiler error #1780

Closed
nqpz opened this issue Nov 28, 2022 · 1 comment
Closed

Internal compiler error #1780

nqpz opened this issue Nov 28, 2022 · 1 comment

Comments

@nqpz
Copy link
Member

nqpz commented Nov 28, 2022

Trying to compile this program with futhark from git

def compose2 = ((>->) (<-<) <-<) (>->)

entry main = compose2 (+) (* 2i32)

gives me this error:

Application of an expression
f
that is neither a static lambda nor a dynamic function, but has static value:
Dynamic (Scalar (Arrow (fromList []) Unnamed (Scalar (Prim (Signed Int32))) (RetType {retDims = [], retType = Scalar (Arrow (fromList []) Unnamed (Scalar (Prim (Signed Int32))) (RetType {retDims = [], retType = Scalar (Prim (Signed Int32))}))})))
CallStack (from HasCallStack):
  error, called at src/Futhark/Internalise/Defunctionalise.hs:947:7 in futhark-0.23.0-inplace:Futhark.Internalise.Defunctionalise
@athas
Copy link
Member

athas commented Nov 28, 2022

Guessing a shadowing bug inside defunctionalisation.

@athas athas closed this as completed in f2855af Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants