Go patch committed: Fix bug in embedded method handling

Ian Lance Taylor iant@google.com
Tue May 6 13:02:00 GMT 2014


This patch to the Go frontend fixes a bug in the handling of methods of
embedded fields.  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.  If the second instance was at a higher level,
its methods would not be used.  This only applied when building the set
of all methods, so ambiguous cases were detected correctly.  The bug
only applied for non-ambiguous cases.  I will commit a test case for
this to the master testsuite.

Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline and 4.9 branch.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3519 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140506/39a86479/attachment.bin>


More information about the Gcc-patches mailing list