-
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: compiler does not allow "direct binding" of function return values to copy
arguments
#15992
Comments
copy
argumentscopy
arguments
copy
argumentscopy
arguments
Moving to 1.9Maybe. There are easy work-arounds and this is exceedingly rare in the first place. |
I actually wanted to work on this but I spent so much time but in vain trying to figuring out why ascompatet wasn't firing, so I moved on to the next bug. |
Unlikely to happen at this point. Moving to 1.10. |
cmd/compile also erroneously errors on
|
@odeke-em The error about wrong number of arguments to copy happens during typechecking. See For comparison, see Well, almost. It fails to handle this case:
|
Interesting, thanks for the debugging @mdempsky I was stumped before as to when it happened. |
@odeke-em I usually start by tracking down where the error message is being printed. In this case, |
Nice nice, same-ish here. See the thing though is I spent hours tracing through all the steps that I could but it led me for some reason down to astcomp*. Perhaps I should have done it not at 2AM :) |
Been like this forever. Not urgent (but shouldn't bee too hard, either). Moving to 1.12. |
Moving to unplanned. This is not stopping anyone from getting work done. |
Change https://golang.org/cl/153841 mentions this issue: |
Change https://golang.org/cl/166983 mentions this issue: |
go version devel +2f08888 Tue Jun 7 06:04:23 2016 +0000 linux/amd64
The spec allows "forwarding"/"direct binding" of return values to function arguments
https://golang.org/ref/spec#Calls
For the following program (https://play.golang.org/p/YEJSEfQLA8):
the compiler issues messages
The same program passes when compiled via
gotypes
andgccgo
.The text was updated successfully, but these errors were encountered: