]> granicus.if.org Git - clang/commit
When converting from a type to itself or one of its base classes via a
authorDouglas Gregor <dgregor@apple.com>
Tue, 22 Dec 2009 00:21:20 +0000 (00:21 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 22 Dec 2009 00:21:20 +0000 (00:21 +0000)
commit0d6d12b2db47ff34d6cd30917992a8c8ad97aac2
treeb28e68e577d9001bdc336713413c6f1bf073b432
parentd6d37dee48cfc5bbcc998bd9d151e4fb3a9437e8
When converting from a type to itself or one of its base classes via a
constructor call, the conversion is only a standard conversion
sequence if that constructor is a copy constructor. This fixes PR5834
in a semi-lame way, because the "real" fix will be to move over to
InitializationSequence. That will happen "soonish", but not now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91861 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CodeGenCXX/PR5834-constructor-conversion.cpp [new file with mode: 0644]