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
ppci-cc: wrong initialization of nested structs #79
Comments
This is correct, right, since the union has superfluous initializers, and the last 5 is discarded. What do you expect here? |
We should get: |
Ah, yes, I see, sorry, I misread the example, you are absolutely right here! |
My fear was that the parsing and semantics was wrong, but actually it was a simple fix in the codegenerator for this code. See commit 81b66a1 Example 00050.c now passes. |
@tstreiff do you think this bug can be closed? |
Yes, the test is now OK! |
With the following declarations:
v.a is 1, v.b is 2, v.c and v.d are 3, but v.s.a and v.s.b contains garbage.
The text was updated successfully, but these errors were encountered: