]> granicus.if.org Git - clang/commitdiff
Make sure we actually generate defaulted copy constructors; caught by
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Sat, 14 May 2011 18:20:50 +0000 (18:20 +0000)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Sat, 14 May 2011 18:20:50 +0000 (18:20 +0000)
Howard Hinnant. Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131349 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index a24f6fb960622a73795ffa1bcd60f12d4a29d7ec..5afd263ea131f1832645cf4d8b9c29b1c4be29a8 100644 (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);