Fix gnuv3_pass_by_reference to lookup copy c-tors with qualified args.
authorSiva Chandra <sivachandra@chromium.org>
Tue, 9 Sep 2014 13:03:42 +0000 (06:03 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Wed, 15 Oct 2014 11:25:32 +0000 (04:25 -0700)
commit82c48ac732edb0155288a93ef3dd39625ff2d2e1
treeaaa8e3ea7ea59d494f28b9a18ca61a1e0a0b20da
parent778811d5e7eb96b5ecb848033ffaa2df455a921e
Fix gnuv3_pass_by_reference to lookup copy c-tors with qualified args.

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:

PR c++/13403
PR c++/15154
* gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
with qualified args.
gdb/ChangeLog
gdb/gnu-v3-abi.c