Large array sizes cause segfault or LLVM error #9906
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
Milestone
Given example test file
arraysize.zig
like:Running produces segfault:
> zig run arraysize.zig zsh: segmentation fault zig run arraysize.zig
Changing size of array to even larger arbitrary value
2e10
produces LLVM error:Maybe error message should be standardized? Or atleast compiler should try to prevent segfault case.
The text was updated successfully, but these errors were encountered: