# Sema: copy pointer alignment to union field pointers · gitcafe/zig

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

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

Visibility: public

Requested revision: 5b594139d93bb94642a94928adf00506f30da746

Requested commit: 5b594139d93bb94642a94928adf00506f30da746

Commit: 5b594139d93bb94642a94928adf00506f30da746

Tree: fb2259414179756f86f79d176283d621a63b3168

Author: mlugg

Committer: Jacob Young

## Message

```
Sema: copy pointer alignment to union field pointers

This implements the semantics as discussed in today's compiler meeting,
where the alignment of pointers to fields of default-layout unions
cannot exceed the field's alignment.

Resolves: #15878

```

## Parents

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

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