compiler: structs inherit all methods from embedded pointer fields.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 27 Jun 2013 20:51:55 +0000 (20:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 27 Jun 2013 20:51:55 +0000 (20:51 +0000)
commit4a197d64cbb29606c45e52b66dcab8ba287c9177
tree9671a37b42e4daa0938b753c69f2e6fcc7d9ee77
parentea16999619a352c06b27b289dd5426c7a4dd76eb
compiler: structs inherit all methods from embedded pointer fields.

Previously if a struct S contained an embedded field *T,
a method with receiver *T would not be promoted to a method
with value receiver S.

From-SVN: r200493
gcc/go/gofrontend/types.cc