From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CADC3858D28; Tue, 2 Apr 2024 11:35:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CADC3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712057709; bh=KE01RhOu8U3bZXB3r0dIHF0pyERjhiEtH02aZEWOhnk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F7O7EjaecVQLeh8XFJ9fAG6gKRASE+dAHjERbX99quIhExrtPJ/ODlALrfVKqgLMd cP8q4a7tHgljQ+9JT4tf6LEAjvK8xBWyKIRp0jixFGlap5bab6eH6pEccRk1y473ec mqqXHMHFncP/AnHlEqaqJpEAF2RinhOwy4TdhQKk= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114561] Comma operator with forwarding reference to pointer raises invalid lvalue required error Date: Tue, 02 Apr 2024 11:35:08 +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: 14.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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=3D114561 --- Comment #4 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #3) > Further reduced: Actually now that it's no longer a function template we don't even need to instantiate it to trigger the error, so this is the minimal reproducer: void create(void* u) { const void* const& r =3D ( (void)0, u ); }=