Closed
Description
When compiling the following program, the zig compiler will allocate a lot (> 24 GB) memory and will be killed by the OS. This is probably to some infinite loop.
extern fn someData() bool;
fn loop() !noreturn {
while(true) {
if(someData())
return error.GenericFailure;
}
}
export fn square() bool {
return loop() catch false;
}