You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zig run underestimate_upper_bound.zig
thread 96316 panic: index out of bounds: index 4, len 3
./underestimate_upper_bound.zig:5:16: 0x1033e49 in main (underestimate_upper_bound)
_ = src_ptr[0..dest_end :0];
^
~/.local/src/zig-linux-x86_64-0.13.0-dev.46+3648d7df1/lib/std/start.zig:501:22: 0x1033669 in posixCallMainAndExit (underestimate_upper_bound)
root.main();
^
~/.local/src/zig-linux-x86_64-0.13.0-dev.46+3648d7df1/lib/std/start.zig:253:5: 0x10331d1 in _start (underestimate_upper_bound)
asm volatile (switch (native_arch) {
^
???:?:?: 0x0 in ??? (???)
Expected Behaviour
The panic condition should match the compile error condition.
The text was updated successfully, but these errors were encountered:
Zig Version
0.13.0-dev.46+3648d7df1
Steps to Reproduce and Observed Behaviour
Compile and run example program with
zig run underestimate_upper_bound.zig
underestimate_upper_bound.zig
:Output:
Expected Behaviour
The panic condition should match the compile error condition.
The text was updated successfully, but these errors were encountered: