# stage2: fix anonymous Decl ty/val wrong arena · gitcafe/zig

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

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

Visibility: public

Requested revision: 072d1e088c3e383c2303b873f55399d374d9808c

Requested commit: 072d1e088c3e383c2303b873f55399d374d9808c

Commit: 072d1e088c3e383c2303b873f55399d374d9808c

Tree: 80858b240c7b18873c25f3969f1f08100956bd76

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix anonymous Decl ty/val wrong arena

string literals and error set types were allocating the ty/val fields of
the anonymous Decl into the owner Decl's arena, rather than the
new anonymous Decl's arena as intended. This caused use of undefined
value later on in the pipeline.

```

## Parents

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

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