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: GOEXPERIMENT=unified <autogenerated>:1: internal compiler error: missing wrapper #52128
Comments
CC @mdempsky |
This also fails on tip but has a stack trace there:
|
Change https://go.dev/cl/407855 mentions this issue: |
Change https://go.dev/cl/410339 mentions this issue: |
Change https://go.dev/cl/410344 mentions this issue: |
@mdempsky Is there anything else to do for this issue? It's currently in the 1.19 milestone. Thanks. |
Current Go1.19 still shows same error- not sure if this is expected? |
Should be fixed on tip with Unified IR enabled. Could you please try it? |
I'm afraid not:
with
|
…d IR Unified IR uses to generate wrappers after the global inlining pass, so it needs to apply inlining for the wrappers itself. However, inlining may reveal new method value nodes which have not been seen yet, thus unified IR never generates wrappers for them. To fix it, just visiting the wrapper function body once more time after inlining, and generate wrappers for any new method value nodes. Fixes golang#52128 Change-Id: I78631c4faa0b00357d4f84704d3525fd38a52cd7 Reviewed-on: https://go-review.googlesource.com/c/go/+/410344 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
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
)?go env
OutputWhat did you do?
on evcc-io/evcc@0420779
What did you expect to see?
No compiler error
What did you see instead?
The text was updated successfully, but these errors were encountered: