# Compilation: fix crash in the compile error system · gitcafe/zig

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

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

Visibility: public

Requested revision: 6504c57176a2a7def07c975af693940fe351bb19

Requested commit: 6504c57176a2a7def07c975af693940fe351bb19

Commit: 6504c57176a2a7def07c975af693940fe351bb19

Tree: 9ab962f554730e7a2a60aed00f219af2952525d4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Compilation: fix crash in the compile error system

There is a table of `misc_failures` which previously did not allow
multiple errors for the same enum tag. Now it allows this by freeing the
previous compile error and replacing it with the new one. Typically this
will happen because multiple sub-Compilation objects fail with the same
problem, such as not being able to build glibc because of not having
LLVM extensions enabled.

```

## Parents

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

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