Skip to content

gccgo: can shift complex numbers #11616

Closed
@dvyukov

Description

@dvyukov

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions