[Bug d/92216] GDC generate duplicate symbols when mixins and interfaces are used to gather

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 16 22:06:01 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92216

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:447d196e75d97a9ac7c6a548dc9d0fe367adf6be

commit r10-7199-g447d196e75d97a9ac7c6a548dc9d0fe367adf6be
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Mar 16 23:04:49 2020 +0100

    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.


More information about the Gcc-bugs mailing list