diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-11 02:15:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-11 02:15:33 +0000 |
commit | 836a7e8468a76320bbdce9752b7d4aef9b5afdf2 (patch) | |
tree | 138e2af979b149d81aef5f3c402d40a2b27dfedd /lldb/source/Target/Process.cpp | |
parent | 8c9c9c77c8f51b5b2eb85d0ad1b4192a7d765c95 (diff) | |
download | bcm5719-llvm-836a7e8468a76320bbdce9752b7d4aef9b5afdf2.tar.gz bcm5719-llvm-836a7e8468a76320bbdce9752b7d4aef9b5afdf2.zip |
Improve our handling of user-defined conversions when computing
implicit conversion sequences. In particular, model the "standard
conversion" from a class to its own type (or a base type) directly as
a standard conversion in the normal path *without* trying to determine
if there is a valid copy constructor. This appears to match the intent
of C++ [over.best.ics]p6 and more closely matches GCC and EDG.
As part of this, model non-lvalue reference initialization via
user-defined conversion in overloading the same way we handle it in
InitializationSequence, separating the "general user-defined
conversion" and "conversion to compatible class type" cases.
The churn in the overload-call-copycon.cpp test case is because the
test case was originally wrong; it assumed that we should do more
checking for copy constructors that we actually should, which affected
overload resolution.
Fixes PR7055. Bootstrapped okay.
llvm-svn: 110773
Diffstat (limited to 'lldb/source/Target/Process.cpp')
0 files changed, 0 insertions, 0 deletions