commit | ea7c57a03135118dde12cb27b735c48c24c88b37 | [log] [tgz] |
---|---|---|
author | Robert Griesemer <gri@golang.org> | Wed Oct 17 11:08:42 2012 -0700 |
committer | Robert Griesemer <gri@golang.org> | Wed Oct 17 11:08:42 2012 -0700 |
tree | 5f3317c485eee824ced7a5810ab3952756f5c67d | |
parent | a2659aa6a105e6ae4fd3debcf4f4d8c79a6b4f4d [diff] |
go spec: restrictions for index and slice expressions At the moment, gc and gccgo report compile- time errors for certain constant indexes that are out of bounds. The spec however requests a run-time panic for out-of-bounds indexes (http://tip.golang.org/ref/spec#Indexes). Document the status quo. Fixes #4231. R=r, rsc, iant, ken CC=golang-dev https://golang.org/cl/6699048