cmd/compile: sparse slices with struct items are not initialized #31987
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Sparse slices with struct items are not initialized properly.
This test fails on 1.12 but passes on 1.11
What did you expect to see?
7th entry in the slice containing
{Value: "some string"}
and test passing.What did you see instead?
All elements in the slice are zero-valued. Reverting the change introduced here https://go-review.googlesource.com/c/go/+/151319/ fixes the issue.
The text was updated successfully, but these errors were encountered: