Skip to content

cmd/compile: stupid shift if right shift #11328

Closed
@dvyukov

Description

Gc rejects to compile the following program:

package a
var v = 0>>1000

saying:

stupid shift: 1000

gotype compiles it successfully.
Compilers should agree on whether it is a valid Go program or not.

on commit af81789

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions