go/internal/gccgoimporter: support embedded field in pointer loop
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 20:25:32 +0000 (20:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 20:25:32 +0000 (20:25 +0000)
commita1fc3891ebb77c1bdf68ce70c074eb907d21771a
treea024cf28fec03c64a811a8e271913a0150ce5b5a
parentd7fb4c3162307590c0babddcea4fb60c07a7c033
go/internal/gccgoimporter: support embedded field in pointer loop

    Backport of https://golang.org/cl/194440.  Original description:

        If an embedded field refers to a type via a pointer, the parser needs
        to know the name of the embedded field. It is possible that the
        pointer type is not yet resolved. This CL fixes the parser to handle
        that case by setting the pointer element type to the unresolved named
        type while the pointer is being resolved.

    Updates golang/go#34182

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194562

From-SVN: r275606
gcc/go/gofrontend/MERGE
libgo/go/go/internal/gccgoimporter/importer_test.go
libgo/go/go/internal/gccgoimporter/parser.go
libgo/go/go/internal/gccgoimporter/testdata/issue34182.go [new file with mode: 0644]
libgo/go/go/internal/gccgoimporter/testdata/issue34182.gox [new file with mode: 0644]