commit | 12116062c8243c6f88d79dac9663a359b77741c6 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sun Feb 21 18:30:38 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sun Feb 21 18:30:38 2010 +0000 |
tree | 9770cb5d561975211fd273d93d92652d5906cdb3 | |
parent | c144f3534e2f7a70ea9ebf8dd83090a2883d61fb [diff] |
A constructor template cannot be used to copy to an object of the same class type (per C++ [class.copy]p3). Make sure that includes copies that involve a derived-to-base conversion. Fixes PR6141. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96742 91177308-0d34-0410-b5e6-96231b3b80d8