Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stage1: Fix crash in can_mutate_comptime_var_state #7431

Merged
merged 2 commits into from
Dec 15, 2020

Conversation

LemonBoy
Copy link
Contributor

No lazy value can mutate global state, no need to resolve them.

If you're reading this then please provide a minimized test case.

Closes #7426

No lazy value can mutate global state, no need to resolve them.

Closes ziglang#7426
@Vexu
Copy link
Member

Vexu commented Dec 14, 2020

If you're reading this then please provide a minimized test case.

pub fn main() void {
    comptime foo(@typeInfo(@TypeOf(.{})));
}
fn foo(args: anytype) void {}

Co-authored-with: Vexu <git@vexu.eu>
@andrewrk andrewrk merged commit b3c1ced into ziglang:master Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiler bug triggered in comptime function
3 participants