-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: method receiver, when missing function type on anonymous function #22389
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
Comments
Appears to be already fixed on tip
|
@mdempsky your CL https://go-review.googlesource.com/c/go/+/70850 and commit f3d4ff7#diff-4e8331dc0915d867dc05240b929434de fixed this issue. I'll mail a CL locking in a test for this issue and then we can close this issue. |
Change https://golang.org/cl/74630 mentions this issue: |
Updates #22389 @mdempsky's CL 70850 fixed the unnecessary compile stack trace printing during ICE diagnostics. This CL adds a test to lock in this behavior. Change-Id: I9ce49923c80b78cb8c0bb5dc4af3c860a43d63ba Reviewed-on: https://go-review.googlesource.com/74630 Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Alright, closed with CL https://go-review.googlesource.com/c/go/+/74630 and commit 0ba4eba. Thanks for the report @anisus and for tracking it @ALTree and @mdempsky for the actual fix! |
What version of Go are you using (
go version
)?go1.9.1 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?windows/amd64
What did you do?
Missed typing the parameter type for an anonymous function which is using the same parameter name as a variable defined in surrounding function.
It is reproducible in play.golang.org
https://play.golang.org/p/AP3xRF11H4
What did you expect to see?
No internal compiler error
What did you see instead?
internal compiler error: method receiver
The text was updated successfully, but these errors were encountered: