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

Compiler crashes when inline loop has a continue statement that relies on a runtime value. #834

Closed
Hejsil opened this Issue Mar 14, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Hejsil
Member

Hejsil commented Mar 14, 2018

test "" {
    var p : usize = undefined;
    comptime var q = true;
    inline while (q) {
        if (p == 11)  continue;
        q = false;
    }
}
zsh: segmentation fault (core dumped)  zig test test2.zig

@andrewrk andrewrk added this to the 0.3.0 milestone Mar 14, 2018

@andrewrk andrewrk added the bug label Mar 14, 2018

@andrewrk andrewrk closed this in 68db9d5 Sep 4, 2018

@andrewrk

This comment has been minimized.

Member

andrewrk commented Sep 4, 2018

screenshot_2018-09-04_15-27-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment