Skip to content

packed struct fixes #16611

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

Merged
merged 2 commits into from
Jul 30, 2023
Merged

packed struct fixes #16611

merged 2 commits into from
Jul 30, 2023

Conversation

xxxbxxx
Copy link
Contributor

@xxxbxxx xxxbxxx commented Jul 29, 2023

closes #16609
and partially addresses #15337

xxxbxxx added 2 commits July 29, 2023 11:56
prefer marking too few undefined bits, rather than too many that may overwrite nearby values.
partially resolves ziglang#15337
When acessing a packed struct member via a byte aligned ptr (from the optimisation in Sema.structFieldPtrByIndex())
the codegen must apply the parent ptr packed_offset in addition to the field offset itself.

resolves ziglang#16609
@jacobly0 jacobly0 merged commit 6f0a613 into ziglang:master Jul 30, 2023
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

Successfully merging this pull request may close these issues.

Packed structs inside packed struct not initialized properly
2 participants