# Check for inactive union field when calling fn at comptime · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7a045ede7ca26338dc553e1a0113d1de4daf1b95)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7a045ede7ca26338dc553e1a0113d1de4daf1b95

Requested commit: 7a045ede7ca26338dc553e1a0113d1de4daf1b95

Commit: 7a045ede7ca26338dc553e1a0113d1de4daf1b95

Tree: 292417e9614e07a9e2416cfe5d720adfdb255f87

Author: John Schmidt

Committer: Andrew Kelley

## Message

```
Check for inactive union field when calling fn at comptime

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

Closes https://github.com/ziglang/zig/issues/18546.

```

## Parents

- [3e79c0f18ce05c302c6117e66275db4fcdf033e4](https://git.cafe/gitcafe/zig/commit/3e79c0f18ce05c302c6117e66275db4fcdf033e4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7a045ede7ca26338dc553e1a0113d1de4daf1b95?format=markdown)
