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
The call to std.testing.expectEqual fails, as arr's value is .{ 0, 0, 0 } at that point.
Expected Behavior
The assignment should copy the sub-array .{ 0, 1 } into positions 1..3, resulting in arr's complete value being .{ 0, 0, 1 }.
This might be yet another manifestation of RLS's oddities (e.g. #12064), or it might not, as those only seem to crop up in places where the right-hand-side of the assignment is an aggregate literal...
The text was updated successfully, but these errors were encountered:
The AIR looks okay to me (though I'm not 100% sure of the semantics of AIR, someone else will have to confirm), but the second call to @llvm.memcpy in the LLVM IR would cause the observed bug.
Zig Version
0.14.0-dev.3199+4162f401c
Steps to Reproduce and Observed Behavior
Test the following program:
The call to
std.testing.expectEqual
fails, asarr
's value is.{ 0, 0, 0 }
at that point.Expected Behavior
The assignment should copy the sub-array
.{ 0, 1 }
into positions1..3
, resulting inarr
's complete value being.{ 0, 0, 1 }
.This might be yet another manifestation of RLS's oddities (e.g. #12064), or it might not, as those only seem to crop up in places where the right-hand-side of the assignment is an aggregate literal...
The text was updated successfully, but these errors were encountered: