cmd/compile: generic type cause "internal compiler error: 'main': Value live at entry. It shouldn't be." #56652
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
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?
Generic types cause compiler error: https://go.dev/play/p/_j9MRr7EBZG
However, it compiles well without generic types: https://go.dev/play/p/3VMHGTkfDUE
What did you expect to see?
I would like to see the same result for code with generic types as for code without generic types.
What did you see instead?
"internal compiler error: 'main': Value live at entry. It shouldn't be."
The text was updated successfully, but these errors were encountered: