Skip to content

Fix #24492 - -H: attributes on invariant leak onto the following declaration, causing layout/vtable corruption and SIGSEGV - #24548

Open
udaykiriti wants to merge 1 commit into
dlang:masterfrom
udaykiriti:fix-24492

Conversation

@udaykiriti

Copy link
Copy Markdown
Contributor

Invariants are not printed in .di files, but an attribute on one still was, so align(1) invariant {...} attached align(1) to the next member. Print {} for it, as already done for unittests.
Fixes #24492

… declaration, causing layout/vtable corruption and SIGSEGV

Invariants are not printed in .di files, but an attribute on one
still was, so `align(1) invariant {...}` attached `align(1)` to the
next member. Print `{}` for it, as already done for unittests.
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.

-H: attributes on invariant leak onto the following declaration, causing layout/vtable corruption and SIGSEGV

1 participant