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

Nested designators not supported for C initialization #343

Open
totalspectrum opened this issue Jan 10, 2023 · 0 comments
Open

Nested designators not supported for C initialization #343

totalspectrum opened this issue Jan 10, 2023 · 0 comments

Comments

@totalspectrum
Copy link
Owner

This particularly affects anonymous structs, e.g.

union {
  struct { float x, y; };
  float raw[2];
} point = { .x = 1.0, .y = 2.0 }

fails, as does an attempt ot initialize with {.raw[0] = 1.0, .raw[1] = 2.0 }.

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