-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: internal compiler error: OCALLMETH missed by typecheck #57309
Comments
This reproduces with tip. Looking. |
Simpler reproducer:
|
Buggy since 1.18. |
This is not working because the escape pass is the one that calls I'm not sure why the escape pass is responsible for this rewrite. Even simpler repro:
|
Conceivably we could just drop this function - there's no point in compiling it because all calls to it got inlined. |
Change https://go.dev/cl/457715 mentions this issue: |
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?
I ran
go test -v
on the following code inpruner_test.go
:What did you expect to see?
What did you see instead?
This compiler error can be avoided by uncommenting the two lines of commented-out code indicated in the source above. regardless, I believe the compiler shouldn't fail in either case.
The text was updated successfully, but these errors were encountered: