From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 143D83858D33; Mon, 16 Jan 2023 16:43:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 143D83858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673887433; bh=G1XbHppRSxBXDPTxrL+oeHj0Iz/cdpNGjfGJ7YcTCRA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZdhO7wfY0rjLt9VC59MARp/WsHeIGeHXnM4uyZP9KdYya4q1q0lABKPf7/0lc3sxS x7tTLfnVTYcfwkarU5YmLxVE8lTN3U+N+k7fXd2JiQ1X7u0twYluKyXYtKwfblm1aA nKpf6UPb7algwFxcItUiN+nqYIl5pvFzcRapJF44= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1 Date: Mon, 16 Jan 2023 16:43: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: 13.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: P1 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107532 --- Comment #3 from Marek Polacek --- Sorry about the long delay. Unfortunately I'm not sure yet how to fix it. We have Ref::inner (&TARGET_EXPR ) which returns a ref and its arg is a temporary.=