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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:9a65c8ee659042babdb05ef15fea9910fa8d6e62

commit r14-6790-g9a65c8ee659042babdb05ef15fea9910fa8d6e62
Author: Patrick Palka <ppa...@redhat.com>
Date:   Thu Dec 21 14:33:56 2023 -0500

    c++: [[deprecated]] on template redecl [PR84542]

    The deprecated and unavailable attributes weren't working when used on
    a template redeclaration ultimately because we weren't merging the
    corresponding tree flags in duplicate_decls.

            PR c++/84542

    gcc/cp/ChangeLog:

            * decl.cc (merge_attribute_bits): Merge TREE_DEPRECATED
            and TREE_UNAVAILABLE.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/attr-deprecated-2.C: No longer XFAIL.
            * g++.dg/ext/attr-unavailable-12.C: New test.
  • [Bug c++/84542] missing -Wdepre... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to