re PR go/86343 (types built by GO share TYPE_FIELDS in unsupported way)
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Jan 2019 23:38:55 +0000 (23:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Jan 2019 23:38:55 +0000 (23:38 +0000)
commiteea11d66bcc0a549fa95f71a7a6bfb97a8dbc7e1
tree97d2f8c5a4176c72fd345c54c732f39008561f0f
parent9fa27ed0884b23d37f2f0b7ee2edd427664aa557
re PR go/86343 (types built by GO share TYPE_FIELDS in unsupported way)

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.

From-SVN: r267789
gcc/go/ChangeLog
gcc/go/go-gcc.cc