]> Cypherpunks.ru repositories - gostls13.git/commit
Storing an out of range constant into a variable should
authorIan Lance Taylor <iant@golang.org>
Mon, 29 Sep 2008 18:03:21 +0000 (11:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 29 Sep 2008 18:03:21 +0000 (11:03 -0700)
commit08df4dcf7d713b8986ee0ce89522234caf6c0e30
tree9f09a2ef7990fe518f3a30d43127808c0f51e5c7
parent89ac5618ac59905e878b7739b25ac6a8b7d3393a
Storing an out of range constant into a variable should
ideally cause the compiler to give an error.  Right now 6g
warns about large shifts but does not give an error.  This CL
removes the out of range shift from shift.go, so that it will
work with gccgo, and adds a test case in bugs/ to be fixed at
a later date.

R=ken,r
DELTA=23  (9 added, 14 deleted, 0 changed)
OCL=16085
CL=16088
test/bugs/bug108.go [new file with mode: 0644]
test/golden.out
test/ken/shift.go