]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: remove special-casing of blank in types.sconv{,2}
authorMatthew Dempsky <mdempsky@google.com>
Wed, 7 Jul 2021 20:18:42 +0000 (13:18 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 7 Jul 2021 22:29:01 +0000 (22:29 +0000)
commit5c59e11f5e1fe2e6d5b684f9a348022c07807126
tree53f266c4c11585eeaf31acdb66d0072b373f7ec5
parentb003a8b1ae26fa684ec35eb7543efa1ded1bcae7
cmd/compile: remove special-casing of blank in types.sconv{,2}

I'm not sure why blank was special-cased here before, but it's
wrong. Blank is a non-exported identifier, and writing it out without
package-qualification can result in linker symbol collisions.

Fixes #47087.

Change-Id: Ie600037c8e54e3d4fdaeec21e2ca212badbd830b
Reviewed-on: https://go-review.googlesource.com/c/go/+/333163
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types/fmt.go
test/fixedbugs/issue47087.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue47087.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue47087.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue47087.go [new file with mode: 0644]