From: Sean Hunt Date: Sat, 14 May 2011 18:20:50 +0000 (+0000) Subject: Make sure we actually generate defaulted copy constructors; caught by X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509f048825d309ca84db136abee32da0c6acffc0;p=clang Make sure we actually generate defaulted copy constructors; caught by Howard Hinnant. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index a24f6fb960..5afd263ea1 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9857,7 +9857,7 @@ void Sema::MarkDeclarationReferenced(SourceLocation Loc, Decl *D) { return; if (!Constructor->isUsed(false)) DefineImplicitDefaultConstructor(Loc, Constructor); - } else if (Constructor->isImplicit() && + } else if (Constructor->isDefaulted() && Constructor->isCopyConstructor()) { if (!Constructor->isUsed(false)) DefineImplicitCopyConstructor(Loc, Constructor);