cmd/compile: nil pointer deref when printing error message for invalid program in 1.17 #51165
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?
This is the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/K7yu7V7_LsE
What did you expect to see?
Various syntax errors. I know this file doesn't compile. That's not the problem.
What did you see instead?
A compiler panic e.g.
./strcache.go:29:14: cannot assign *st_name to %!L(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference) in multiple assignment
The text was updated successfully, but these errors were encountered: