From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 485053858030; Thu, 21 Dec 2023 19:34:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 485053858030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703187260; bh=1q+CoTBID3N/XG3qd/FECVvlbgQC0xBhH8d3a8H7tw0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wyungoooY0/m93q1oeHCui63K33z7N5UK1jRjeUBUa/rWb4No9DDSh5p88Gz1LjRJ AHvuFmzY4VS2lAOMK9dq05CSmeFGmIfVRi9vcwbanA7DvDFYojL5Fl/0dBN2IifJ98 Ih1Y+XUjWdEqKCJvdJoJoYBiU2s3puOx7iBnQUP4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84542] missing -Wdeprecated-declarations on a redeclared function template Date: Thu, 21 Dec 2023 19:34:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84542 --- Comment #7 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9a65c8ee659042babdb05ef15fea9910fa8d6e62 commit r14-6790-g9a65c8ee659042babdb05ef15fea9910fa8d6e62 Author: Patrick Palka 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.=