cmd/compile: spurious not a slice
error when calling unsafe.SliceData
on a type-parameterized slice
#64406
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
Go 1.21 (playground)
What operating system and processor architecture are you using (
go env
)?What did you do?
https://go.dev/play/p/1onZLUkD_VX
What did you expect to see?
successful compilation
What did you see instead?
But it clearly is a slice, because (according to the same error message) it is constrained by
~[]E
.(attn @griesemer)
The text was updated successfully, but these errors were encountered: