compiler: only finalize embedded fields before finalizing methods
commitf2baa3b209facdcf31c986bfe6a2e7208c79621e
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Aug 2017 16:27:17 +0000 (2 16:27 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Aug 2017 16:27:17 +0000 (2 16:27 +0000)
treeeb35b7e42661e0fd9a8672831a9fa0bd347f3afc
parente6562331e34c590b47998d27d49af7327e391d21
compiler: only finalize embedded fields before finalizing methods

    When finalizing the methods of a named struct type, we used to
    finalize all the field types first.  That can fail if the field types
    refer indirectly to the named type.  Change it to just finalize the
    embedded field types first, and the rest of the fields later.

    Fixes golang/go#21253

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250832 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc