# stage1: Fix crash in comptime struct value copy · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d2f103bfb8931e2e65ca7f79d62389b69781492

Requested commit: 6d2f103bfb8931e2e65ca7f79d62389b69781492

Commit: 6d2f103bfb8931e2e65ca7f79d62389b69781492

Tree: f7f6d1fbbaffea1f1cfe9d743008c0e6e977424a

Author: LemonBoy

Committer: Veikka Tuominen

## Message

```
stage1: Fix crash in comptime struct value copy

Comptime fields are never materialized in the ZigValue so pay attention
when iterating over the fields array.

Fixes #6800

```

## Parents

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

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