summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-01-30 04:38:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-01-30 04:38:28 +0000
commitc95726ea39372286ebd3a28e3176921cddc65c62 (patch)
tree480af02030c69633f80ce738e6090d1eb1eb0144 /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
parente4ddaa44272f55d95a2377f900f9ab3b296b6366 (diff)
downloadbcm5719-llvm-c95726ea39372286ebd3a28e3176921cddc65c62.tar.gz
bcm5719-llvm-c95726ea39372286ebd3a28e3176921cddc65c62.zip
Towards P0091R3: parsing support for class template argument deduction in typename-specifiers.
llvm-svn: 293455
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 2310e99ab9d..46de4a1565a 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -657,10 +657,9 @@ Decl *TemplateDeclInstantiator::VisitVarDecl(VarDecl *D,
ArrayRef<BindingDecl*> *Bindings) {
// Do substitution on the type of the declaration
- TypeSourceInfo *DI = SemaRef.SubstType(D->getTypeSourceInfo(),
- TemplateArgs,
- D->getTypeSpecStartLoc(),
- D->getDeclName());
+ TypeSourceInfo *DI = SemaRef.SubstType(
+ D->getTypeSourceInfo(), TemplateArgs, D->getTypeSpecStartLoc(),
+ D->getDeclName(), /*AllowDeducedTST*/true);
if (!DI)
return nullptr;
OpenPOWER on IntegriCloud