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

Unsupported _Complex Type Causes c2rust Transpilation Failure #1201

Open
Yeaseen opened this issue Feb 21, 2025 · 0 comments
Open

Unsupported _Complex Type Causes c2rust Transpilation Failure #1201

Yeaseen opened this issue Feb 21, 2025 · 0 comments

Comments

@Yeaseen
Copy link
Contributor

Yeaseen commented Feb 21, 2025

When attempting to transpile a simple C program using _Complex int, c2rust fails with an error stating that complex types are unsupported.

C code

#include <stdlib.h>
_Complex int a;
int main() {
    a = 1;      
    return 0;
}

c2rust error:

Transpiling runner.c
error: Failed to translate a: Unsupported type Complex(CTypeId(15))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant