Skip to content

Conversation

@schmee
Copy link
Contributor

@schmee schmee commented Feb 10, 2024

Reuse unionFieldPtr here to ensure that all the safety checks are included.

Closes #18546.
Closes #18625.

Reuse `unionFieldPtr` here to ensure that all the safety checks are
included.

Closes ziglang#18546.
@schmee schmee changed the title Check for inactive union field when calling fn at comptime Sema: check for inactive union field when calling fn at comptime Feb 18, 2024
@andrewrk andrewrk merged commit 7a045ed into ziglang:master Feb 27, 2024
@schmee schmee deleted the issue-18546 branch February 27, 2024 09:21
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.

Unused bad pointer in comptime expression, crashes the compiler segfault when accidentally calling a tagged union field

2 participants