You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./prog.go:20:3: nil evaluated but not used
Go build failed.
What did you see instead?
./prog.go:18:2: internal compiler error: unexpected stmt: nil
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
Go build failed.
The text was updated successfully, but these errors were encountered:
This gets an internal compiler error on 1.17 but works on tip (works in the sense that the compiler reports the error "nil is not used"). Since this is invalid code, and this is fixed on tip, and the error is not so bad in 1.17, I'm not sure it's worth backporting a fix. Happy to hear other opinions.
dmitshur
added
the
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
label
Dec 22, 2021
Since this issue is resolved on tip, I'll move it to that milestone and close it as fixed. It can still be considered for backport to 1.17 and 1.16 (if 1.16 is affected), but I do not think it would meet the bar for the reasons Ian described. Thank you for reporting it, though.
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
labels
Dec 22, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.17.5 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/W8yLp8Nstp-
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: