summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-29 15:46:07 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-29 15:46:07 +0000
commit561f79389091fa5840ccc9aa4bb723281b5b0936 (patch)
treef3abf86beaacab7edb0fcda2074905c3f97a6f98 /clang/lib/Sema/SemaDecl.cpp
parent2b09590321a9f9e390c737b016652cb6d10152c8 (diff)
downloadbcm5719-llvm-561f79389091fa5840ccc9aa4bb723281b5b0936.tar.gz
bcm5719-llvm-561f79389091fa5840ccc9aa4bb723281b5b0936.zip
Make sure to call CompleteConstructorCall for bases and members that are initialized implicitly in constructors so that default arguments etc are set correctly. Fixes PR5283.
llvm-svn: 85510
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 2ba1130c875..71afe689166 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3769,6 +3769,9 @@ Sema::DeclPtrTy Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope,
}
Sema::DeclPtrTy Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, DeclPtrTy D) {
+ // Clear the last template instantiation error context.
+ LastTemplateInstantiationErrorContext = ActiveTemplateInstantiation();
+
if (!D)
return D;
FunctionDecl *FD = 0;
OpenPOWER on IntegriCloud