diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-07 02:06:42 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-07 02:06:42 +0000 |
commit | 1fde8ece371a86fe3aae232e9d143fbd8dc34d08 (patch) | |
tree | e02b5ce8098d8aaae92b5a6e42692c2438a41f21 /clang/lib/Sema/SemaTemplateDeduction.cpp | |
parent | 97158ca5c26c759ccdc81ef01a3f94f2fdb264c6 (diff) | |
download | bcm5719-llvm-1fde8ece371a86fe3aae232e9d143fbd8dc34d08.tar.gz bcm5719-llvm-1fde8ece371a86fe3aae232e9d143fbd8dc34d08.zip |
PR9023: A template template parameter whose template parameter list contains an
unexpanded parameter pack is a pack expansion. Thus, as with a non-type template
parameter which is a pack expansion, it needs to be expanded early into a fixed
list of template parameters.
Since the expanded list of template parameters is not itself a parameter pack,
it is permitted to appear before the end of the template parameter list, so also
remove that restriction (for both template template parameter pack expansions and
non-type template parameter pack expansions).
llvm-svn: 163369
Diffstat (limited to 'clang/lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateDeduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateDeduction.cpp b/clang/lib/Sema/SemaTemplateDeduction.cpp index b8f0bca2969..b236f2861e0 100644 --- a/clang/lib/Sema/SemaTemplateDeduction.cpp +++ b/clang/lib/Sema/SemaTemplateDeduction.cpp @@ -573,7 +573,7 @@ static void PrepareArgumentPackDeduction(Sema &S, if (!S.CurrentInstantiationScope) continue; - // If the template arugment pack was explicitly specified, add that to + // If the template argument pack was explicitly specified, add that to // the set of deduced arguments. const TemplateArgument *ExplicitArgs; unsigned NumExplicitArgs; |