Zig Version
0.16.0-dev.1484+d0ba6642b
Steps to Reproduce and Observed Behavior
Minimal reproduction:
pubfnmain()void{constT=packedstruct{x:u17};consta:u32=0;constb:*constT=@ptrCast(&a);constc=b.x;_=c;}Observed behavior: compiler hangs indefinitely
Compiles successfully using the x86_64 backend.
Expected Behavior
Should compile and run.
Also, is this ptrCast considered "legal" (ptrcast from int to packed struct of lower bit size) ?
### Zig Version
0.16.0-dev.1484+d0ba6642b
### Steps to Reproduce and Observed Behavior
Minimal reproduction:
```zig
pub fn main() void {
const T = packed struct { x: u17 };
const a: u32 = 0;
const b: *const T = @ptrCast(&a);
const c = b.x;
_ = c;
}
```
Observed behavior: compiler hangs indefinitely
Compiles successfully using the x86_64 backend.
### Expected Behavior
Should compile and run.
Also, is this `ptrCast` considered "legal" (ptrcast from int to packed struct of lower bit size) ?