Skip to content

gccgo: can shift by complex number #11574

Closed
@dvyukov

Description

@dvyukov

gccgo successfully compiles the following program:

package a
var a = 0 << complex64(1)

go/types say:

go.go:2: invalid operation: 0 << complex64(1) (shift count type complex64, must be unsigned integer)

gccgo must unlearn how to shift by complex numbers.

#11567

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