-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
go/types: can shift complex numbers #11594
Comments
@griesemer if my reading of the spec is correct, then we also need to file a bug on gccgo. |
This is clearly a go/types bug. Should be trivial to fix and probably should be fixed for 1.5. |
The fix is trivial (one missing predicate check). Can safely go in for 1.5 as far as I am concerned. https://go-review.googlesource.com/#/c/12045/ (includes tests). |
CL https://golang.org/cl/12045 mentions this issue. |
CL https://golang.org/cl/12046 mentions this issue. |
Backport of https://go-review.googlesource.com/#/c/12045/ Fixes golang/go#11594. Change-Id: I3c81e2b1bbdc084d4a323fd963c1c780054ce223 Reviewed-on: https://go-review.googlesource.com/12046 Reviewed-by: Alan Donovan <[email protected]>
gotype successfully compiles the following program:
gccgo also compiles it. gc rejects it saying:
Spec says that lhs of shift must be an integer.
The text was updated successfully, but these errors were encountered: