Zig Version
0.17.0-dev.305+bdfbf432d
Steps to Reproduce and Observed Behavior
fnfoo()void{for(0..10)|i|{inlinefor(.{1,2,3})|_|{mock_continue:{if(i<5)break:mock_continue;break;}}}}pubfnmain()!void{foo();}
if (i < 5)
break :mock_continue
- unlabeled
break inside inline for
are necessary to reproduce segmentation fault.
Expected Behavior
compilation success or semantic error instead of raw segfault.
### Zig Version
0.17.0-dev.305+bdfbf432d
### Steps to Reproduce and Observed Behavior
```zig
fn foo() void {
for (0..10) |i| {
inline for (.{ 1, 2, 3 }) |_| {
mock_continue: {
if (i < 5) break :mock_continue;
break;
}
}
}
}
pub fn main() !void {
foo();
}
```
- `if (i < 5)`
- `break :mock_continue`
- unlabeled `break` inside `inline for`
are necessary to reproduce segmentation fault.
### Expected Behavior
compilation success or semantic error instead of raw segfault.