compiler: use correct location for iota errors
authorIan Lance Taylor <iant@golang.org>
Sun, 6 Dec 2020 05:16:13 +0000 (21:16 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Dec 2020 18:22:12 +0000 (10:22 -0800)
commitf1b6e17b3f753980527721aa8e949d2481b2560b
tree1d9071fcfcbf9832e58b86f14812d4d017cdb654
parentf41dd93ade24f22f8cd1863129ab20c821000134
compiler: use correct location for iota errors

Also check for valid array length when reducing len/cap to a constant.

For golang/go#8183

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275654
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/parse.cc