From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CB3703858D38; Thu, 27 Apr 2023 15:54:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB3703858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682610894; bh=LSTKLLZ5RDXsCboS/b5IzFO5JUYQ6+ZHtDydINunXwo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AeGP5b/Cg6arzeidAjlghRgHx+HDgDWs/L0xngeyHX4srHu3rfmM0c3avN2kS346N 199r5TZY/D8ip9dkN85E94xRXyOHK1hKv+dx5QKzY5LH4mB5Oa6C8Fr0cZCecL4oGx wyo3cE3T8QJ5n1419s4HF/0tLl1jPGCcT2Nz6SUQ= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109640] Spurious Wdangling-reference for argument to temporary lambda cast to rvalue reference Date: Thu, 27 Apr 2023 15:54:54 +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: 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: cc 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=3D109640 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #3 from Marek Polacek --- We could probably disable the warning when the temporary is of empty class type?=