Skip to content
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 when compiling code with unbound method of generic type [1.19 backport] #54243

gopherbot opened this issue Aug 3, 2022 · 2 comments
CherryPickCandidate compiler/runtime


Copy link

@gopherbot gopherbot commented Aug 3, 2022

@randall77 requested issue #53982 to be considered for backport to the next 1.19 minor release.

@gopherbot Please open a backport issue for 1.19.

@gopherbot gopherbot added the CherryPickCandidate label Aug 3, 2022
@gopherbot gopherbot added the compiler/runtime label Aug 3, 2022
@gopherbot gopherbot added this to the Go1.19.1 milestone Aug 3, 2022
Copy link

@randall77 randall77 commented Aug 3, 2022

From #53852 (comment) , we avoided backporting generics fixes because they tended to be destabilizing.

I suspect we will want to do something similar for 1.20, especially once we switch over to unified IR, at which point any fixes for 1.19 will be different from fixes for tip.

But for now I think the CL for this issue is simple enough to warrant a backport.

This is an ICE caused by embedding a generic type and calling a method on that type.

Copy link

@jmacd jmacd commented Aug 5, 2022

We suspect this is related, here's a way to reproduce:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
CherryPickCandidate compiler/runtime
None yet

No branches or pull requests

3 participants