compiler: avoid follow-on errors for bad types
commitb1adbc27c4a85ded4db81ed65b1cefce4cee8d15
authorIan Lance Taylor <iant@golang.org>
Fri, 27 Nov 2020 00:11:28 +0000 (26 16:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 28 Nov 2020 15:01:41 +0000 (28 07:01 -0800)
tree43770b3d503fd73e08fa5647f8a892d4c4ba6b54
parent822ea13e499db20af2080b48fc3bb530e429bb8d
compiler: avoid follow-on errors for bad types

Mark bad types as erroneous, to avoid generating further errors.

This required some code using array types to check for errors.

For https://golang.org/issue/19880

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273626
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h
gcc/testsuite/go.test/test/fixedbugs/bug255.go