From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 178C43856DF2; Wed, 10 May 2023 20:57:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 178C43856DF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683752247; bh=2izywcDU28cD8pZ2L9Tf7BTo7lw3yktI1V/RIDhlKZ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L7728oSUeHqniL7vuZspv32WDH4e3S07f6GegU0jJ9277yyWoDQheOvFMbChRU5z6 6ZmRITVh373JgqltCgSMSo4ZJbJVH65jV5ybmagiiyazSPU8tD3lOk/8aEU/eQbEaI DbDJzdlJq0P6rTraxqvvaBJ5c7q00ZH47y515DXQ= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109774] template function causes Spurious dangling reference warning while non-template does not Date: Wed, 10 May 2023 20:57:26 +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: 13.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status 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=3D109774 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org Status|NEW |ASSIGNED --- Comment #2 from Marek Polacek --- Here it comes down to 13900 || warning_suppressed_p (fndecl, OPT_Wdangling_reference) in do_warn_dangling_reference. So it's about the propagation of the suppression bits.=