From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FBC83858D38; Fri, 30 Sep 2022 08:03:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FBC83858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664524983; bh=6yG7olohEb5Z/wshmLH++XQLynW09wtgSWM87UhjqPA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e+o9teqPByjRfVZq935VwR5UjTfskJ5mhQ8pZAGK00SeYPY/pusfV9aRxMXIDRjZv juPxbGiboUy+hZ3ErTYTYW609yAaQ39I5ttenkNQSlxEHv+T0/fNbcgFvJ3HTpvo55 0onYjPXCgxrxRsW1FFFmUl1VxVz4z746RoxIhiQc= From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107065] GCC treats rvalue as an lvalue Date: Fri, 30 Sep 2022 08:03:03 +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.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D107065 --- Comment #11 from Marc Glisse --- Did you try adding "non_lvalue" in match.pd? It looks less intrusive. Altho= ugh in the long term your approach seems better and the failures should be fixa= ble.=