aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-20 15:36:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-20 16:17:16 -0700
commit4fccc95b0152aefeb40912768ec045b57a2fdc2b (patch)
tree711ec4766c0cd236b239eb448398d2162c770068 /lib/std
parente86ff712a666ab5be54fa763cc12a5f245718117 (diff)
downloadzig-4fccc95b0152aefeb40912768ec045b57a2fdc2b.tar.gz
zig-4fccc95b0152aefeb40912768ec045b57a2fdc2b.zip
Sema: fix requiresComptime infinite recursion
When asking a struct or union whether the type requires comptime, it may need to ask itself recursively, for example because of a field which is a pointer to itself. This commit adds a field to each to keep track of when computing the "requires comptime" value and returns `false` if the check is already ongoing.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions