]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: emit error message for broken type
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 29 Aug 2019 17:42:38 +0000 (00:42 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 29 Aug 2019 19:08:00 +0000 (19:08 +0000)
commit97bc039c9cf127bd1bee9442eb1bc23aa63bf4ff
treed5f2d887de3ae045b17b655809e78d788d3ab6c8
parent24c6dd982323949d1a55f8d4e8b0674e45bcf3ce
cmd/compile: emit error message for broken type

The original report in #5172 was that cmd/compile was generating bogus
follow-on error messages when typechecking a struct failed. Instead of
fixing those follow-on error messages, golang.org/cl/9614044 suppress all
follow-on error messages after struct typecheck fails. We should
continue emitting error messages instead.

While at it, also add the test case for original report.

Fixes #33947

Change-Id: I4a5c6878977128abccd704350a12df743631c7bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/191944
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue5172.go