From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4536A385771B; Thu, 7 Mar 2024 15:01:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4536A385771B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709823713; bh=Cklo+ANzxp2iBNYAioBMK/tJJr4pI6+oR1QkoV6dAJ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LK2E7TJDzz7C3nm6Ossmjdkc8i+R+HZf0r7Z3VdnRioys3S4hW5VTQc+3yLc1UWDw bgR9iF7c9uO/E8A2FC7HWoVV8RvO6yoiqkU6N1Joj+CSEbKiiWficZReV5s3OWMA6g 5ef/dleBKjAwdQHvkDFShF66O8BMPLJrpR7hkEf8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110031] [11/12/13/14 Regression] ICE with deprecated attribute and NTTP and diagnostic for deprecated printed out so much Date: Thu, 07 Mar 2024 15:01:52 +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: 12.1.0 X-Bugzilla-Keywords: accepts-invalid, diagnostic, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D110031 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:9f915684624413f96e1a5ffada398ccd1c533e38 commit r14-9364-g9f915684624413f96e1a5ffada398ccd1c533e38 Author: Marek Polacek Date: Mon Mar 4 12:35:18 2024 -0500 c++: ICE with variable template and [[deprecated]] [PR110031] lookup_and_finish_template_variable already has and uses the complain parameter but it is not passing it down to mark_used so we got the default tf_warning_or_error, which causes various problems when lookup_and_finish_template_variable gets called with complain=3Dtf_none. PR c++/110031 gcc/cp/ChangeLog: * pt.cc (lookup_and_finish_template_variable): Pass complain to mark_used. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/inline-var11.C: New test.=