• Robert Griesemer's avatar
    spec: remove special int rule for shifts · 58e21dda
    Robert Griesemer authored
    The rule is not concistently followed by gc.
    It appears that gccgo is ignoring it. go/types
    does not implement this rule. However, both
    gccgo and now go/types can compile/type-check
    the entire std library (and thus all the shift
    expressions occuring in it) w/o errors. For
    more details see the discussion in issue 4883.
    
    Fixes #4880.
    Fixes #4881.
    Fixes #4883.
    
    R=rsc, r, iant, ken, ken, mtj, rogpeppe
    CC=golang-dev
    https://golang.org/cl/7707043
    58e21dda
go_spec.html 175 KB