diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-25 00:23:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-25 00:23:05 +0000 |
commit | 60f2e1efb821259de7ae32d9c1ff5a5cbe2aa849 (patch) | |
tree | 0a30a2c40b58b2203565a51170284a6a01efba38 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | e974a6afaffba87e4ca086a9e6cbb4c54209b814 (diff) | |
download | bcm5719-llvm-60f2e1efb821259de7ae32d9c1ff5a5cbe2aa849.tar.gz bcm5719-llvm-60f2e1efb821259de7ae32d9c1ff5a5cbe2aa849.zip |
Don't produce diagnostics for missing ctor-initializers during template
instantiations if we encountered errors parsing some of the initializers.
llvm-svn: 164578
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 8c1722fdedb..d1c30bdf0c8 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -2986,7 +2986,7 @@ Sema::InstantiateMemInitializers(CXXConstructorDecl *New, const MultiLevelTemplateArgumentList &TemplateArgs) { SmallVector<CXXCtorInitializer*, 4> NewInits; - bool AnyErrors = false; + bool AnyErrors = Tmpl->isInvalidDecl(); // Instantiate all the initializers. for (CXXConstructorDecl::init_const_iterator Inits = Tmpl->init_begin(), |