Skip to content

gccgo: does not see stupidness of shift count #11524

Closed
@dvyukov

Description

@dvyukov

Both gc and go/types reject the following program, but gccgo accepts:

package a
var g = 0>>1080

gccgo should reject it as well.
gcc version 6.0.0 2015070 (experimental) (GCC)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions