We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gccgo successfully compiles the following program:
package a var a = complex64(1) << 2
gc rejects it saying:
invalid operation: complex64(1) << 2 (shift of type complex64)
Spec says that lhs of shift must be an integer. Similar issue for go/types #11594
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered:
@paranoiacblack
Sorry, something went wrong.
CL https://golang.org/cl/13688 mentions this issue.
golang/gofrontend@913b47c
compiler: Don't allow shifts with non-integers.
85334a2
Fixes golang/go#11616. Reviewed-on: https://go-review.googlesource.com/13688 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227604 138bc75d-0d04-0410-961f-82ee72b054a4
No branches or pull requests
gccgo successfully compiles the following program:
gc rejects it saying:
Spec says that lhs of shift must be an integer.
Similar issue for go/types #11594
gcc version 6.0.0 2015070 (experimental) (GCC)
The text was updated successfully, but these errors were encountered: