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

Variable access to a local struct #552

Open
ForNeVeR opened this issue Mar 3, 2024 · 0 comments
Open

Variable access to a local struct #552

ForNeVeR opened this issue Mar 3, 2024 · 0 comments
Labels
area:compiler Related to code compilation or type checking kind:bug Something isn't working status:blocked For issues blocked by something

Comments

@ForNeVeR
Copy link
Owner

ForNeVeR commented Mar 3, 2024

After #551, I've found the following example of broken behavior:

int main(void) {
    struct foo {
        int x;
    } bar;
    bar.x = 42; // Type Cesium.CodeGen.Ir.Types.StructType was not found.
    return bar.x;
}

It may be fixed by rolling back commit baa2fde (in particular, see changes in LValueInstanceField), but I currently feel the whole type gen process should be rearchitectured.

So, for now this will have to be broken until we do #201.

@ForNeVeR ForNeVeR added kind:bug Something isn't working area:compiler Related to code compilation or type checking status:blocked For issues blocked by something labels Mar 3, 2024
ForNeVeR added a commit that referenced this issue Mar 3, 2024
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:blocked For issues blocked by something
Projects
None yet
Development

No branches or pull requests

1 participant