Fix PR#18843. Thanks to Howard for the fix
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@240136 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,6 +34,10 @@ struct Z : Y {};
|
||||
|
||||
int main()
|
||||
{
|
||||
{ // https://llvm.org/bugs/show_bug.cgi?id=18843
|
||||
std::shared_ptr<T const> t1(new T);
|
||||
std::shared_ptr<T const> t2(std::make_shared<T>());
|
||||
}
|
||||
{
|
||||
std::shared_ptr<Y> p(new Z);
|
||||
std::shared_ptr<T> q = p->shared_from_this();
|
||||
|
Reference in New Issue
Block a user