]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: skip array bounds errors when type is broken
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 10 Apr 2017 20:43:36 +0000 (13:43 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 10 Apr 2017 20:57:08 +0000 (20:57 +0000)
commit423e7e603765d0253d8970af1ae4bc1e8efd3fe5
tree497c2cbf27c294cbdc06a3787c379d98c7a68dc5
parent97b89dc0558e2b8e8809e74222a19c92206a6174
cmd/compile: skip array bounds errors when type is broken

This avoids false positives
like those found in #19880.

Fixes #19880

Change-Id: I583c16cc3c71e7462a72500db9ea2547c468f8c1
Reviewed-on: https://go-review.googlesource.com/40255
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/bug255.go
test/fixedbugs/issue19880.go [new file with mode: 0644]
test/fixedbugs/issue7525.go
test/fixedbugs/issue7525b.go [new file with mode: 0644]
test/fixedbugs/issue7525c.go [new file with mode: 0644]