-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: unsafe.Offsetof returns incorrect value in embedded struct with type parameters #53137
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
It seems that when instantiating generic function, all implicit dot operations are resolved, so Maybe we just need to clobber any implicit dot, something like this should work:
|
Change https://go.dev/cl/409355 mentions this issue: |
Should we backport this cc @ianlancetaylor @randall77 ? |
@gopherbot please open a backport issue for 1.18. |
Backport issue(s) opened: #53159 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
I checked in 1.18.2 / go1.19-52f68efa45.
https://go.dev/play/p/nSbR4HtjOSv
The text was updated successfully, but these errors were encountered: