-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
stage2: Crash with labeled block expression in nested inline for
#13175
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
Labels
Milestone
Comments
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 15, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed.
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 16, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 20, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
topolarity
added a commit
to topolarity/zig
that referenced
this issue
Oct 21, 2022
This PR (ziglang#12873) in combination with this particular test exposed a pre-existing bug (ziglang#13175). This means that the test for ziglang#13038 has regressed
Here is another test case: test "break from named while loop in an inline while loop sandwich" {
var n: u32 = 0;
comptime var b = false;
inline while (true) : (b = true) {
MID_LOOP: while (true) {
comptime var a: u2 = 2;
inline while (true) {
if (!b and n == 0) break :MID_LOOP;
a -= 1;
if (a == 0) break;
if (n == 0) break;
}
}
if (b) break;
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.10.0-dev.4418+99c3578f6
Steps to Reproduce
Basically a more complicated version of #13038
Expected Behavior
Test should pass.
Actual Behavior
The text was updated successfully, but these errors were encountered: