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

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

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

Visibility: public

Requested revision: 2611d97fb07e5cba5657f508e93f01d60a2379bd

Requested commit: 2611d97fb07e5cba5657f508e93f01d60a2379bd

Commit: 2611d97fb07e5cba5657f508e93f01d60a2379bd

Tree: fb2259414179756f86f79d176283d621a63b3168

Author: mlugg

Committer: mlugg

## 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/2611d97fb07e5cba5657f508e93f01d60a2379bd?format=markdown)
