[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc
Subject: Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct
From: "H.J. Lu" <hjl.tools () gmail ! com>
Date: 2016-02-19 19:48:29
Message-ID: CAMe9rOohpBvF3T2Ns0_1db1uht6BE_bpKTifx1qOwVg2ksexsw () mail ! gmail ! com
[Download RAW message or body]
On Fri, Feb 19, 2016 at 11:03 AM, Matthijs van Duin
<matthijsvanduin@gmail.com> wrote:
> On 19 February 2016 at 14:35, Michael Matz <matz@suse.de> wrote:
>> struct S {
>> S() {something();}
>> };
>>
>> would be an empty type, and that's not what we want.
>
> Why not? The default constructor is never invoked as part of passing
> such an object around. Its copy constructor is a nop and requires no
> reference to the original object.
>
Do you have a precise wording to describe it?
--
H.J.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic