This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r250832 - in /trunk/gcc/go/gofrontend: MERGE go...
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 02 Aug 2017 16:27:17 -0000
- Subject: r250832 - in /trunk/gcc/go/gofrontend: MERGE go...
Author: ian
Date: Wed Aug 2 16:27:17 2017
New Revision: 250832
URL: https://gcc.gnu.org/viewcvs?rev=250832&root=gcc&view=rev
Log:
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
Modified:
trunk/gcc/go/gofrontend/MERGE
trunk/gcc/go/gofrontend/gogo.cc