aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-13 23:14:53 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-13 23:14:53 +0000
commitcad84b7c12564ff37feb66d6d004bb609bea8788 (patch)
treeafab19a2565e6069b475747c8b4946490d59d94a /lib/Sema/SemaDecl.cpp
parent65d0e28583ac050ec9aa71b469285faad48d137e (diff)
A constructor template cannot be instantiated to a copy
constructor. Make sure that such declarations can never be formed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index fa31cc5ddb..30d046f3b9 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -3909,6 +3909,9 @@ Sema::DeclPtrTy Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, DeclPtrTy D) {
<< FD->getNameAsCString() << "dllimport";
}
}
+
+ assert(ExprTemporaries.empty() && "Leftover temporaries before starting");
+
return DeclPtrTy::make(FD);
}