Make sure we actually generate defaulted copy constructors; caught by

Howard Hinnant. Thanks!

llvm-svn: 131349
This commit is contained in:
Alexis Hunt
2011-05-14 18:20:50 +00:00
parent b12c37b302
commit 22b5b13ce3

View File

@@ -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);