This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/4] PR c++/13403 and PR c++/15154: Fix gnuv3_pass_by_reference to lookup copy c-tors with qualified args


On Thu, Sep 11, 2014 at 11:37 AM, Siva Chandra <sivachandra@google.com> wrote:
> Before this, a copy constructor declared as in the following snippet was
> not being treated as a copy constructor.
>
> class A
> {
> public:
>   A (A &); // OK.
>   A (const A &); // Not being treated as a copy constructor because of the
>                  // 'const' qualifier.
> };
>
> gdb/ChangeLog:
>
> 2014-09-11  Siva Chandra Reddy  <sivachandra@google.com>
>
>         PR c++/13403
>         PR c++/15154
>         * gdbtypes.c (make_qualified_type): Make non-static.
>         * gdbtypes.h (make_qualified_type): Declare.
>         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy
>         constructors with qualified args

Can you use class_types_same_p here (instead of comparing with the
result of make_qualified_type) ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]