# Sema: fix error set merging creating references to invalid memory · gitcafe/zig

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

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

Visibility: public

Requested revision: 8f9d857932dfb3abb97852dacc90c88a613a1b25

Requested commit: 8f9d857932dfb3abb97852dacc90c88a613a1b25

Commit: 8f9d857932dfb3abb97852dacc90c88a613a1b25

Tree: b61ca956811af80bdc8d9bc0115ca9d377ad6c76

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix error set merging creating references to invalid memory

Trying to use std.heap.page_allocator with stage2 now results in
(incorrect) compile errors rather than UAF.

```

## Parents

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

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