# stage2: fix inferred comptime constant locals · gitcafe/zig

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

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

Visibility: public

Requested revision: 7c1061784b8b126633cfe84f46280f7bf72beffc

Requested commit: 7c1061784b8b126633cfe84f46280f7bf72beffc

Commit: 7c1061784b8b126633cfe84f46280f7bf72beffc

Tree: eb99e5eb52d22b9f7d17cfd62dcfb19e3c26296a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix inferred comptime constant locals

`const` declarations inside comptime blocks were not getting properly
evaluated at compile-time. To accomplish this there is a new ZIR
instruction, `alloc_inferred_comptime`. Actually we already had one
named that, but it got renamed to `alloc_inferred_comptime_mut` to match
the naming convention with the other similar instructions.

```

## Parents

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

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