[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-20 22:35:34
Message-ID: CAMe9rOqMBvr_2vXhVqHwB-mvS3m+R-O63VpVtmk0SfK9t3tOgw () mail ! gmail ! com
[Download RAW message or body]
On Sat, Feb 20, 2016 at 11:40 AM, Matthijs van Duin
<matthijsvanduin@gmail.com> wrote:
> On 20 February 2016 at 20:34, H.J. Lu <hjl.tools@gmail.com> wrote:
>> Is there a class, which meets the above definition, with a member function
>> which can't be passed without a memory slot or a register?
>
> The EmptyInt class in my first post in this thread. It has no
> non-static data members, has standard layout, and has a trivial
> default constructor, but it has a non-trivial copy constructor and
> non-trivial destructor.
>
Can a compiler tell if a copy constructor or destructor is trivial
from the class declaration without function body?
--
H.J.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic