]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: do simple bounds checking of constant indices/slices in typecheck.
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 1 Nov 2012 17:45:19 +0000 (18:45 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Thu, 1 Nov 2012 17:45:19 +0000 (18:45 +0100)
commit85d60a727cc25cb10cf2a3ff1fd68463a9749d34
tree18a6b63e82fd10a2887b73bb9d28153dfde5c859
parent1e8e14c901cebde0550c4fe0c1a77b3902d6080d
cmd/gc: do simple bounds checking of constant indices/slices in typecheck.

This should make the compiler emit errors specific to the bounds checking instead of overflow errors on the underlying types.

Updates #4232.

R=rsc
CC=golang-dev
https://golang.org/cl/6783054
src/cmd/gc/typecheck.c