Zig Version
0.15.2
Steps to Reproduce and Observed Behavior
To reproduce, compile the following code with zig build-exe filename.zig
conststd=@import("std");constbits=129;// breaks if bits >= 129pubfnmain()void{foo("");}fnfoo(bar:[]constu8)void{vara:usize=0;constb=@as(std.meta.Int(.unsigned,bits),1)<<@intCast(a);}Compilation process hangs then terminates by signal SIGSEGV (Address boundary error)
Expected Behavior
Compiler not segfaulting.
### Zig Version
0.15.2
### Steps to Reproduce and Observed Behavior
To reproduce, compile the following code with `zig build-exe filename.zig`
```zig
const std = @import("std");
const bits = 129; // breaks if bits >= 129
pub fn main() void {
foo("");
}
fn foo(bar: []const u8) void {
var a: usize = 0;
const b = @as(std.meta.Int(.unsigned, bits), 1) << @intCast(a);
}
```
Compilation process hangs then terminates by signal SIGSEGV (Address boundary error)
### Expected Behavior
Compiler not segfaulting.