cmd/compile: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference #54326
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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
)?Not sure that's relevant, as the bug occurs on different platforms, environments, and even CI.
What did you do?
What did you expect to see?
Normal execution of the test.
What did you see instead?
More
I extracted code that reproduces this behavior here: https://github.com/bytemare/go-19-panic . It needs a test file to panic, so it does not reproduce on the playground: https://go.dev/play/p/WlCb-l0gd82
It used to work on Go 1.18. The repo I linked to runs
go test
on 1.19 and 1.18, where it panics reliably on 1.19 but not 1.18.The text was updated successfully, but these errors were encountered: