This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: Only finalize embedded fields before finalizing methods


In the Go frontend, 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.  This fixes https://golang.org/issue/21253.  Bootstrapped and
ran Go testsuite on x86_64-pc-linux-gnu.  Committed to mainline and
GCC 7 branch.

Ian

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]