# stage2: move enum tag values into the InternPool · gitcafe/zig

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

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

Visibility: public

Requested revision: 88dbd62bcbac24c09791a7838d2f08c2f540967a

Requested commit: 88dbd62bcbac24c09791a7838d2f08c2f540967a

Commit: 88dbd62bcbac24c09791a7838d2f08c2f540967a

Tree: 9935a67bb6644fc448513eb728a1f22a587a89fb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: move enum tag values into the InternPool

I'm seeing a new assertion trip: the call to `enumTagFieldIndex` in the
implementation of `@Type` is attempting to query the field index of an
union's enum tag, but the type of the enum tag value provided is not the
same as the union's tag type. Most likely this is a problem with type
coercion, since values are now typed.

Another problem is that I added some hacks in std.builtin because I
didn't see any convenient way to access them from Sema. That should
definitely be cleaned up before merging this branch.

```

## Parents

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

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