cmd/compile: ICE on slice of array pointer returned by a generic function #71184
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.23.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
The following program crashes the compiler:
I have not been able to reduce this program further: everything, except the body of
G
, is essential to triggering the bug.F
must be stenciled, G must return a generic type, not*T
or*[0]T
, and the type constraint onF[T]
seems to be irrelevant.What did you see happen?
ICE.
What did you expect to see?
Not an ICE.
The text was updated successfully, but these errors were encountered: