compiler: Fix bug in embedded method handling.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 May 2014 05:33:31 +0000 (05:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 May 2014 05:33:31 +0000 (05:33 +0000)
commit6f073191159dadc2a2a4bfc75d4c2b73a86eda92
tree68c228bb0290e99375ae39f09c414532c5c92697
parent0c2b1bb7b665e77a4f0ebe462447abab90b87ecf
compiler: Fix bug in embedded method handling.

If the same type was embedded in a struct at different levels,
only the first embedded instance was considered when building
the set of all methods.  A second instance was ignored, even
if it was at a higher level and should therefore override the
first instance.

Test case is bug485.go in master repository.

From-SVN: r210096
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h