From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C480B38582A3; Sun, 18 Dec 2022 17:46:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C480B38582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671385600; bh=L7EpoZcLu4DKtgVEyitSqvt1L8UCWvYrKFgQ7i6kJwI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=egoVVvm/zUlewkPfsxfkLxC2MpYuzVbdjqnMuhXcuc9XdfIddSs+pKts1ttyU2r7S uTorH4jHnmOI/dXwt+2JMWAl7xWfDWwTGu/DtnJFJakHIhoYbsoQLACUTef2CjaaFV VCFEFtFD9hoLF1UFxY40GaXoViG3LPjJRphJlnv8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108165] -Wdangling-reference false positive Date: Sun, 18 Dec 2022 17:46:40 +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.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D108165 --- Comment #1 from Andrew Pinski --- So at the warning is not flow sensitive at all and does not take into accou= nt the definition of f; only the call location of f is taken into account. In this case, the call site of f has a temporary and the warning is saying possibly because a temporary is made in the call arguments of f.=