]> Cypherpunks repositories - gostls13.git/commit
spec: remove special int rule for shifts
authorRobert Griesemer <gri@golang.org>
Fri, 15 Mar 2013 20:55:50 +0000 (13:55 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 15 Mar 2013 20:55:50 +0000 (13:55 -0700)
commit58e21ddaf9498462acb5c552c48e0c52073e1db3
tree89136796ad8912a54a56bad830778832a17bcba5
parent7b7619626a269553f54bbe6ef8ea9fda444864e9
spec: remove special int rule for shifts

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
doc/go_spec.html