aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateVariadic.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-12-24 00:15:10 +0000
committerDouglas Gregor <dgregor@apple.com>2010-12-24 00:15:10 +0000
commit56bc9832bc8f80604bfddc2c93f81537df6930a1 (patch)
treec6ff99dc08210a48fd5a3f72a309611b71837042 /lib/Sema/SemaTemplateVariadic.cpp
parent10738d36b150aa65206890c1c845cdba076e4200 (diff)
When instantiating a non-type template parameter pack, be sure to
extract the appropriate argument from the argument pack (based on the current substitution index, of course). Simple instantiation of pack expansions involving non-type template parameter packs now works. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateVariadic.cpp')
-rw-r--r--lib/Sema/SemaTemplateVariadic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateVariadic.cpp b/lib/Sema/SemaTemplateVariadic.cpp
index fe30ba5845..3dac8a0408 100644
--- a/lib/Sema/SemaTemplateVariadic.cpp
+++ b/lib/Sema/SemaTemplateVariadic.cpp
@@ -395,7 +395,7 @@ bool Sema::CheckParameterPacksForExpansion(SourceLocation EllipsisLoc,
// If we don't have a template argument at this depth/index, then we
// cannot expand the pack expansion. Make a note of this, but we still
- // want to check that any parameter packs we *do* have arguments for.
+ // want to check any parameter packs we *do* have arguments for.
if (!TemplateArgs.hasTemplateArgument(Depth, Index)) {
ShouldExpand = false;
continue;