[PATCH 4/4] PR c++/13403 and PR c++/15154: Fix gnuv3_pass_by_reference to treat dynamic classes as non-trivial

Siva Chandra sivachandra@google.com
Mon Sep 29 22:29:00 GMT 2014


On Mon, Sep 29, 2014 at 1:08 AM, Doug Evans <dje@google.com> wrote:
>> 2014-09-11  Siva Chandra Reddy  <sivachandra@google.com>
>>
>>         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
>>         as non-trivial.
>
> This looks ok to me.
> I couldn't find anything in the ABI to guide me (could certainly have
> missed it), though it seems reasonable and it does fix the testcase.

The ABI defers the definition of triviality of copy constructors and
destructors to the C++ 98 final draft standard. The point under
question in this patch is under -6- here:
http://www.kouzdra.org/page/docs/isocpp/special.html#class.copy



More information about the Gdb-patches mailing list