# Sema: fix a few indexing bugs · gitcafe/zig

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

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

Visibility: public

Requested revision: d038676a1f46ecab2bd095d3503ab05bcd8de58c

Requested commit: d038676a1f46ecab2bd095d3503ab05bcd8de58c

Commit: d038676a1f46ecab2bd095d3503ab05bcd8de58c

Tree: 8525291c4a2fd35e61299ab2d0a19b8a110f6196

Author: mlugg

Committer: Matthew Lugg

## Message

```
Sema: fix a few indexing bugs

* Indexing zero-bit types should not produce AIR indexing instructions
* Getting a runtime-known element pointer from a many-pointer should
  check that the many-pointer is not comptime-only

Resolves: #23405

```

## Parents

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

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