compiler, reflect: fix struct field names for embedded aliases
commita7c5b619f56467413bf15d0ac8ba30d04e3424e8
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Sep 2017 03:48:51 +0000 (14 03:48 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Sep 2017 03:48:51 +0000 (14 03:48 +0000)
tree83191e42d888f13aa922cfda85d4c7eafe051622
parent957ff9e86decf7df777392834d49f6b9237ee42d
compiler, reflect: fix struct field names for embedded aliases

    This adds much of https://golang.org/cl/35731 and
    https://golang.org/cl/35732 to the gofrontend code.

    This is a step toward updating libgo to the 1.9 release.  The
    gofrontend already supports type aliases, and this is required for
    correct support of type aliases when used as embedded fields.

    The change to expressions.cc is to handle the << 1, used for the
    newly renamed offsetAnon field, in the constant context used for type
    descriptor initialization.

    Reviewed-on: https://go-review.googlesource.com/62710

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252746 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/types.cc
libgo/go/reflect/all_test.go
libgo/go/reflect/type.go
libgo/go/reflect/value.go