From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 92CC83858C50; Wed, 28 Jun 2023 14:30:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92CC83858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687962633; bh=RwJb1C+NENeCOffnwFpHl8VJApERJfmWYZXWwXn4m1Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ixyot0XJ74IU9L6taHpgehQIRWVYx53n53eVyPlw+O0rc2uha/UTlTE9adsx7vGSd FfsDRt4z6JzaZNdDjM3+JxfUFte0WBf/ixH+bwgB/qIaMywDNIICbs0n8sQYDgVdfI QmhhoKX1bYYrE/azYFwYHBtfJj4R2hIsb4c4AhCE= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110441] c++17: temporary causes static member function call to confuse required copy elision Date: Wed, 28 Jun 2023 14:30:33 +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: ppalka 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=3D110441 --- Comment #4 from Patrick Palka --- (In reply to Patrick Palka from comment #3) > In contrast, '(S(), S::f())' (which should be equivalent) is represented = as > a TARGET_EXPR of a COMPOUND_EXPR rather than a COMPOUND_EXPR of a > TARGET_EXPR, and so copy elision is correctly avoided. oops, this should say "is correctly _performed_"=