-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: global variable assignment implicit type conversion error #68264
Comments
Thanks for the report. Interestingly, this problem appears to have been around for quite some time; I can reproduce it at tip, then in 1.22 all the way back to 1.16 (works ok in 1.15). @golang/compiler |
I have a nasty suspicion this is something in expand_calls. |
Actually, this panics in the frontend
|
Change https://go.dev/cl/596055 mentions this issue: |
Go version
go1.22.4 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/AwgUrKVlv9_Z
What did you see happen?
./prog.go:7:5: internal compiler error: unexpected initialization statement: a, b = .autotmp_0, .autotmp_1
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
What did you expect to see?
Expected output of
[0] [1]
, identical to what is output when doing the same assignment to local variables:The text was updated successfully, but these errors were encountered: