-
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: hash of unhashable type [4]int32 #65957
Comments
Change https://go.dev/cl/567335 mentions this issue: |
Change https://go.dev/cl/567335 mentions this issue: |
Here's a simpler reproducer: https://go.dev/play/p/NGky0OURi8R |
I can reproduce with go1.21 and go1.22. Should we backport this fix? |
I'm on the fence. We only backport serious issues with no workaround, which I'm not sure this qualifies. It has been a bug since 1.18 and this is the first anyone has reported it. I'm not sure what a workaround might be, though. Does introducing a use of the array type in both packages work as a workaround? I'll open backports and we can discuss on those issues. @gopherbot please open backport issues. This issue may warrant backporting. It causes program crashing in some very particular circumstances. (Use of |
Backport issue(s) opened: #65982 (for 1.21), #65983 (for 1.22). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Go version
gotip
Output of
go env
in your module/workspace:What did you do?
playground link: https://go.dev/play/p/WAX0OTneh60
What did you see happen?
What did you expect to see?
no panic
The text was updated successfully, but these errors were encountered: