Skip to content
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

gccgo: can shift by string #12936

Closed
dvyukov opened this issue Oct 14, 2015 · 2 comments
Closed

gccgo: can shift by string #12936

dvyukov opened this issue Oct 14, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Oct 14, 2015

gccgo successfully compiles the following program:

package e
const c = 0>>""

while gc says:

/tmp/test.go:2: cannot convert "" to type uint
/tmp/test.go:2: invalid operation: 0 >> "" (shift count type string, must be unsigned integer)

gc seems to be right.
gcc on rev 228818, gofrontend on a4bcd319d98ddc52b3e7d16ec87d92aad868ab05

@dvyukov
Copy link
Member Author

dvyukov commented Oct 14, 2015

@ianlancetaylor

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Oct 14, 2015
@paranoiacblack
Copy link
Contributor

Fixed by w/e fixed #12935.

@golang golang locked and limited conversation to collaborators Oct 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants