]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: export package for _ (blank) struct fields
authorRobert Griesemer <gri@golang.org>
Tue, 23 Aug 2016 23:02:19 +0000 (16:02 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Aug 2016 23:40:36 +0000 (23:40 +0000)
commit6394eb378eb6b2c0e691c519b2a6664f930b427e
treedb91b33802aab0f444cd09d41ab68ac163a94278
parenta8eb6d51bbd668b9e6fefa9f0cf39fccde3a305e
cmd/compile: export package for _ (blank) struct fields

Blank struct fields are regular unexported fields. Two
blank fields are different if they are from different
packages. In order to correctly differentiate them, the
compiler needs the package information. Add it to the
export data.

Fixes #15514.

Change-Id: I421aaca22b542fcd0d66b2d2db777249cad78df6
Reviewed-on: https://go-review.googlesource.com/27639
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/bimport.go
src/go/internal/gcimporter/bimport.go
test/fixedbugs/issue15514.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue15514.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue15514.dir/c.go [new file with mode: 0644]
test/fixedbugs/issue15514.go [new file with mode: 0644]