-
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
x/tools/go/ssa: panic: variadic parameter must be of unnamed slice type #54946
Comments
CC @golang/tools-team |
I was not able to reproduce this yet. Steps I tried below. So far the root cause of similar issues has been compiling with a too old version of x/tools. Do you know what version of go you compiled ssadump with and what version of x/tools it was? Here are the steps I took to reproduce.
|
-build=G for ssa instantiate generic function |
@visualfc please share the output of |
Thanks. I was missing |
|
The example in question:
The issue comes from substitution of S to string. The type of I don't believe we can create the signature |
Filed #55030 for discussion of what to do about this in go/types. |
Fixes have been back-ported. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Input program: $GOROOT/test/typeparam/issue376214.go
I run it with
ssadump -build=G issue376214.go
What did you expect to see?
I expect it pass.
What did you see instead?
The text was updated successfully, but these errors were encountered: