]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix error msg mentioning different packages with same name
authorRobert Griesemer <gri@golang.org>
Tue, 21 Jun 2016 21:27:40 +0000 (14:27 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 22 Jun 2016 00:12:55 +0000 (00:12 +0000)
commit1f446432ddfd64f1507e7c85cd603d3c5ae60094
treeb62cb1515790f81a89333fc0134daecf9d267425
parent845992eeed01643bfb2e88aa559413908b3cb508
cmd/compile: fix error msg mentioning different packages with same name

This is a regression from 1.6. The respective code in importimport
(export.go) was not exactly replicated with the new importer. Also
copied over the missing cyclic import check.

Added test cases.

Fixes #16133.

Change-Id: I1e0a39ff1275ca62a8054874294d400ed83fb26a
Reviewed-on: https://go-review.googlesource.com/24312
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/export.go
test/fixedbugs/issue16133.dir/a1.go [new file with mode: 0644]
test/fixedbugs/issue16133.dir/a2.go [new file with mode: 0644]
test/fixedbugs/issue16133.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue16133.dir/c.go [new file with mode: 0644]
test/fixedbugs/issue16133.go [new file with mode: 0644]