# AstGen: fix @export with undeclared identifier crashing · gitcafe/zig

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

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

Visibility: public

Requested revision: 4585cb1e2ff6afdb23748bd020ccf8e850550510

Requested commit: 4585cb1e2ff6afdb23748bd020ccf8e850550510

Commit: 4585cb1e2ff6afdb23748bd020ccf8e850550510

Tree: 543dc8dd76da0bbb33dc90ada4af91afafd5a7cb

Author: Wooster

Committer: Andrew Kelley

## Message

```
AstGen: fix @export with undeclared identifier crashing

This required a third `if (found_already == null)` in another place in
AstGen.zig for this special case of `@export`.

Fixes #17188

```

## Parents

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

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