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
Per the spec, the following code
var a []int var s uint var _ = a[0xffffffffffffffff << s]
is not permitted:
Here, 0xffffffffffffffff does not fit into an int, but go/types accepts it.
cmd/compile reports: constant 18446744073709551615 overflows int
The text was updated successfully, but these errors were encountered:
Not urgent but the fix may be simple in which case we may want to do it for Go1.10.
Sorry, something went wrong.
Change https://golang.org/cl/144385 mentions this issue: go/types: untyped shifted constants must fit their expected int type
go/types: untyped shifted constants must fit their expected int type
9f7b1a8
No branches or pull requests
Per the spec, the following code
is not permitted:
Here, 0xffffffffffffffff does not fit into an int, but go/types accepts it.
cmd/compile reports: constant 18446744073709551615 overflows int
The text was updated successfully, but these errors were encountered: