compiler: Do not count package uses from ambiguous lookups.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 13 Nov 2014 00:10:37 +0000 (00:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 13 Nov 2014 00:10:37 +0000 (00:10 +0000)
commitecd7b400c959b1ba0e006e48fac6b82253fe8834
treec52785286d6b2d294585d421b228ed1b7ea46041
parentbe8de8946ed904c92c09dadb158e76c9c5044d11
compiler: Do not count package uses from ambiguous lookups.

When using dot imports, it is possible to
have an imported symbol name that matches
the name of a struct field in a composite
literal.  Do not consider the imported
package to be used in this situation.
Fixes issue 6427.

From-SVN: r217453
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/parse.cc