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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:921661beb90edd14a6102e87f0ff71b5a21a70ee

commit r10-9010-g921661beb90edd14a6102e87f0ff71b5a21a70ee
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Nov 6 20:33:39 2020 +0100

    c++: Propagate attributes to clones in duplicate_decls [PR67453]

    On the following testcase where the cdtor attributes aren't on the
    in-class declaration but on an out-of-class definition, the cdtors
    have their clones created from the in-class declaration, and later on
    duplicate_decls updates attributes on the abstract cdtors, but nothing
    propagates them to the clones.

    2020-11-06  Jakub Jelinek  <ja...@redhat.com>

            PR c++/67453
            * decl.c (duplicate_decls): Propagate DECL_ATTRIBUTES and
            DECL_PRESERVE_P from olddecl to its clones if any.

            * g++.dg/ext/attr-used-2.C: New test.

    (cherry picked from commit 6c282c14d1be0bba2bf5d49acd074b349f28ad17)

Reply via email to