Skip to content

gccgo: can apply ^ to true #11529

Closed
Closed
@dvyukov

Description

gccgo accepts the following program:

package a
var f = ^true

While gc and go/types say:

go.go:2:10: invalid operation: operator ^ not defined for true (untyped bool constant)
go.go:2: invalid operation: ^ untyped bool

gcc version 6.0.0 2015070 (experimental) (GCC)

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions