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

ICE when missing extern "c" in C FFI function #340

Open
tonyfettes opened this issue Dec 5, 2024 · 2 comments
Open

ICE when missing extern "c" in C FFI function #340

tonyfettes opened this issue Dec 5, 2024 · 2 comments
Labels
bug Something isn't working ICE Internal Compiler Error

Comments

@tonyfettes
Copy link
Contributor

pub fn op_mod(self : Double, other : Double) -> Double = "fmod"
@tonyfettes tonyfettes added bug Something isn't working ICE Internal Compiler Error labels Dec 5, 2024
@codeworm96
Copy link

I reproduced the issue. The error message is:

Error: File "inlined_snapshot/_build/C_of_clam.ml", line 415, characters 14-20: Assertion failed

moonc version: v0.1.20241210+3258bad5b

@codeworm96
Copy link

Actually, I encountered a similar issue, but the error message is different. I used the WASM FFI in native backend by mistake:

fn cos(d : Double) -> Double = "Math" "cos"

The error message is:

Error: Failure("TODO: import")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ICE Internal Compiler Error
Projects
None yet
Development

No branches or pull requests

2 participants