]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: Friendlier errors on oversized arrays.
authorDaniel Morsing <daniel.morsing@gmail.com>
Sun, 21 Oct 2012 17:22:51 +0000 (19:22 +0200)
committerDaniel Morsing <daniel.morsing@gmail.com>
Sun, 21 Oct 2012 17:22:51 +0000 (19:22 +0200)
commita7a3fe72386df56d6bf6cd83fe346e1c72cf998a
tree11de713049b64318cbefb5043f2b9e6102bce710
parentc1b7ddc6aa476340e9f1d61edc83102e87fc8f9b
cmd/gc: Friendlier errors on oversized arrays.

Someone new to the language may not know the connection between ints and arrays, which was the only thing that the previous error told you anything about.

Fixes #4256.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6739048
src/cmd/gc/const.c
src/cmd/gc/go.h
src/cmd/gc/typecheck.c
test/fixedbugs/bug255.go