Skip to content

gccgo: does not convert untyped complex 0i to int in binary operation involving an int #11563

Description

@dvyukov

gc successfully compiles the following program:

package a
var e,f = f^0i,0

while gccgo says:

go.go:2:12: error: incompatible types in binary expression

gccgo seems to be right, because 0i is imaginary literal.

go version devel +bb7e665 Tue Jun 30 07:42:37 2015 +0000 linux/amd64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions