From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BEC59385DC12; Thu, 9 Apr 2020 18:31:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEC59385DC12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586457062; bh=MGdGYoAhvEz/treN+3fXcDNfDYWbsV0Ar0Xlkt8/dsI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bQlX6VNkqu8uO5rsCEANPYhySPvt1Y+smQwdmdtw//8tKaTCAdStmiqq7NR5LBjDE 9a5lQY0nnNk5pQKW8/rliP1o/Mo6vn9m4SQmbl2kLHwNYgdN6diVaUosXDbrYxzGKh L6mzrdyDqyU1UAwaza+8r/qrej+fvvT4IO7au7iE= From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94034] [10 Regression] Broken diagnostic: 'result_decl' not supported by dump_expr Date: Thu, 09 Apr 2020 18:31:02 +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: 10.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2020 18:31:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94034 Jason Merrill changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #6 from Jason Merrill --- (In reply to Patrick Palka from comment #5) > Here is a rejects-valid testcase caused by the same underlying issue: Actually, A does not have guaranteed copy elision in function argument pass= ing or return. Which is a good thing, since it can't have it under the current ABI. http://eel.is/c++draft/class.temporary#3=20 "When an object of class type X is passed to or returned from a function, i= f X has at least one eligible copy or move constructor ([special]), each such constructor is trivial, and the destructor of X is either trivial or delete= d, implementations are permitted to create a temporary object to hold the func= tion parameter or result object." So I suppose my comment on Paolo's patch was wrong, and this is only a diagnostic quality issue after all.=