]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: permit indices of certain non-constant shifts
authorRobert Griesemer <gri@golang.org>
Thu, 30 Nov 2017 23:47:46 +0000 (15:47 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 1 Dec 2017 20:39:50 +0000 (20:39 +0000)
commit088a9ad543398fa6e656dd5e6f837fb07caada16
tree333ad7301504c7a85b0beefd92860efd608c69ee
parentaaccb3834c37a923659d1dc1004dcde94f04d871
cmd/compile: permit indices of certain non-constant shifts

Per the decision for #14844, index expressions that are non-constant
shifts where the LHS operand is representable as an int are now valid.

Fixes #21693.

Change-Id: Ifafad2c0c65975e0200ce7e28d1db210e0eacd9d
Reviewed-on: https://go-review.googlesource.com/81277
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/typecheck.go
test/shift1.go