https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86343
--- Comment #3 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> --- Author: ian Date: Wed Jan 9 23:38:55 2019 New Revision: 267789 URL: https://gcc.gnu.org/viewcvs?rev=267789&root=gcc&view=rev Log: PR go/86343 * go-gcc.cc (Gcc_backend::set_placeholder_struct_type): Go back to build_distinct_type_copy, but copy the fields so that they have the right DECL_CONTEXT. Modified: trunk/gcc/go/ChangeLog trunk/gcc/go/go-gcc.cc