-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: go build panics when 'len' keyword was unintentionally shadowed #27973
Comments
After applying the following fix (patch file) to the code, the build went through just fine |
This appears to be fixed at tip. @odeke-em, @griesemer, is there something to backport to Go 1.11? |
Sorry I did not include
|
This has already been selected for a 1.11 backport: #27399, but for some reason it wasn't included in 1.11.1, it was moved (with a few others) on a future 1.11.2 |
Bummer. Not sure why that wasn't included in Go 1.11.1. Will close this one as a duplicate of that. |
I'm checking my terminal logs, and I can see that releasebot moved issue #27399 over from Go 1.11.1 to Go 1.11.2 yesterday when I ran |
The reason it wasn't added to 1.11.1 is because a cherrypick CL was not merged for #27399, thus the issue was still open when the release occurred. Open issues like that one are moved to the next minor release (in this case, 1.11.2). If we want to get this into 1.11.2 then someone should create the cherry pick CL and merge it into the release1.11 branch, thus closing #27399. See https://github.com/golang/go/wiki/MinorReleases for more details. |
Sigh, I tried to send the cherry-pick CL -so we don't forget again-, but apparently only the change author (and I assume the go devs) can do that. |
What version of Go are you using (
go version
)?go version go1.11.1 darwin/amd64
(Also occured on go version go1.11 darwin/amd64)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Mac OS X 10.12.6
What did you do?
go build
Exact steps are here (fix is not pushed yet, so that code will still break)
https://play.golang.org/p/Xt3wlYYucAZ . (Not Go code, but a shell session)
What did you expect to see?
Apparently, as per go 1.10.3 (from Slack), the error message should have been
What did you see instead?
The text was updated successfully, but these errors were encountered: