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 complex numbers #11616

Closed
dvyukov opened this issue Jul 6, 2015 · 2 comments
Closed

gccgo: can shift complex numbers #11616

dvyukov opened this issue Jul 6, 2015 · 2 comments
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 6, 2015

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)

@dvyukov
Copy link
Member Author

dvyukov commented Jul 6, 2015

@paranoiacblack

@paranoiacblack paranoiacblack added this to the Gccgo milestone Jul 8, 2015
@paranoiacblack paranoiacblack added the Suggested Issues that may be good for new contributors looking for work to do. label Jul 8, 2015
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/13688 mentions this issue.

vries pushed a commit to vries/gcc that referenced this issue Sep 10, 2015
    
    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
@golang golang locked and limited conversation to collaborators Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Suggested Issues that may be good for new contributors looking for work to do.
Projects
None yet
Development

No branches or pull requests

4 participants