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

Type cast to function pointer doesn't work #384

Open
ForNeVeR opened this issue May 6, 2023 · 0 comments
Open

Type cast to function pointer doesn't work #384

ForNeVeR opened this issue May 6, 2023 · 0 comments
Labels
area:compiler Related to code compilation or type checking kind:bug Something isn't working status:help-wanted Open for contributors

Comments

@ForNeVeR
Copy link
Owner

ForNeVeR commented May 6, 2023

See a comment in Cesium.IntegrationTests/type_casts.c (introduced in #377):


    // function pointer types are not supported yet?
    // int j = (int) (void (*)(int a)) a;
    // int k = (int) (void (*)(int a)) (a + b);
    // if (j + k != 5) return -5;

We should investigate this problem.

@ForNeVeR ForNeVeR added kind:bug Something isn't working status:help-wanted Open for contributors area:compiler Related to code compilation or type checking labels May 6, 2023
ForNeVeR added a commit that referenced this issue Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:compiler Related to code compilation or type checking kind:bug Something isn't working status:help-wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

1 participant