d: Fix multiple definition error when using mixins and interfaces.
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 16 Mar 2020 22:04:49 +0000 (23:04 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 16 Mar 2020 22:04:49 +0000 (23:04 +0100)
commit447d196e75d97a9ac7c6a548dc9d0fe367adf6be
treebe27bd1aa37d7ee67d9668fc9f81e6f7553c7caa
parentc015ff8ccaf3ee8e4f6393679ed790ed0df92873
d: Fix multiple definition error when using mixins and interfaces.

gcc/d/ChangeLog:

PR d/92216
* decl.cc (make_thunk): Don't set TREE_PUBLIC on thunks if the target
function is external to the current compilation.

gcc/testsuite/ChangeLog:

PR d/92216
* gdc.dg/imports/pr92216.d: New.
* gdc.dg/pr92216.d: New test.
gcc/d/ChangeLog
gcc/d/decl.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/imports/pr92216.d [new file with mode: 0644]
gcc/testsuite/gdc.dg/pr92216.d [new file with mode: 0644]