-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: panic: runtime error: index out of range [0] with length 0 #51765
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
Thanks for reporting this. |
CC @mdempsky as well, though this appears to compile without errors with |
This appears to be due to confusion between |
Change https://go.dev/cl/394076 mentions this issue: |
The problem is that
will return wrong type parameters. |
Change https://go.dev/cl/394274 mentions this issue: |
@gopherbot please backport to Go 1.18; this is a compiler bug that could theoretically lead to silent miscompilation of valid user code |
Backport issue(s) opened: #51855 (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. |
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 was using the following code (https://go.dev/play/p/KwmzJ6V1JwN)
What did you expect to see?
The code compiles and run.
What did you see instead?
The text was updated successfully, but these errors were encountered: