]> granicus.if.org Git - clang/commit
When instantiating a non-type template parameter pack, be sure to
authorDouglas Gregor <dgregor@apple.com>
Fri, 24 Dec 2010 00:15:10 +0000 (00:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 24 Dec 2010 00:15:10 +0000 (00:15 +0000)
commit56bc9832bc8f80604bfddc2c93f81537df6930a1
treec6ff99dc08210a48fd5a3f72a309611b71837042
parent10738d36b150aa65206890c1c845cdba076e4200
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
lib/AST/DeclPrinter.cpp
lib/AST/StmtProfile.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateVariadic.cpp
test/CXX/temp/temp.decls/temp.variadic/p4.cpp