]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't crash reporting misuse of shadowed built-in function
authortaylorza <taylorza@gmail.com>
Sun, 2 Sep 2018 22:09:29 +0000 (18:09 -0400)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Sep 2018 02:49:21 +0000 (02:49 +0000)
commit4a095b87d30f1f6f7ae01e966f1af5ee63b15c1c
tree18b3dc6dbe2e4e4a958900c74d2954fbd4793cde
parent98fd66808fafb6496caeb3e848ae277b734f8ed9
cmd/compile: don't crash reporting misuse of shadowed built-in function

The existing implementation causes a compiler panic if a function parameter shadows a built-in function, and then calling that shadowed name.

Fixes #27356
Change-Id: I1ffb6dc01e63c7f499e5f6f75f77ce2318f35bcd
Reviewed-on: https://go-review.googlesource.com/132876
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue27356.go [new file with mode: 0644]