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
While investigating #3444 I stumbled over this behavior:
pubfnmain() void {
varx="foo";
x=x[1..];
}
$ zig build-exe test.zig
broken LLVM module found: Stored value type does not match pointer operand type!
store i8* %2, i8* %1, !dbg !14121
i8Stored value type does not match pointer operand type!
store i64 2, i8* %3, !dbg !14121
i8
Unable to dump stack trace: debug info stripped
Aborted
When discarding the result of x[1..] I get a segfault instead:
pubfnmain() void {
varx="foo";
_=x[1..];
}
$ zig build-exe test.zig
Segmentation fault
The text was updated successfully, but these errors were encountered:
andrewrk
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Oct 14, 2019
While investigating #3444 I stumbled over this behavior:
When discarding the result of x[1..] I get a segfault instead:
The text was updated successfully, but these errors were encountered: