diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-14 23:41:42 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-14 23:41:42 +0000 |
| commit | e1d60df0fc2f1083844edc40821a2545d4d40a72 (patch) | |
| tree | 26b5902b8b863a4caebe5e5e49db9c380f70f702 /clang/lib/Sema/SemaTemplateInstantiate.cpp | |
| parent | 714ab86491d2e8686b4d53fa98739e193f276d11 (diff) | |
| download | bcm5719-llvm-e1d60df0fc2f1083844edc40821a2545d4d40a72.tar.gz bcm5719-llvm-e1d60df0fc2f1083844edc40821a2545d4d40a72.zip | |
Teach template template argument pack expansions to keep track of the
number of expansions, when we know it, and propagate that information
through Sema.
llvm-svn: 123493
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiate.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp index 13cc17ef536..17b38bc1de6 100644 --- a/clang/lib/Sema/SemaTemplateInstantiate.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp @@ -809,11 +809,8 @@ TemplateInstantiator::TransformFirstQualifierInScope(NamedDecl *D, assert(Arg.getKind() == TemplateArgument::Pack && "Missing argument pack"); - if (getSema().ArgumentPackSubstitutionIndex == -1) { - // FIXME: Variadic templates fun case. - getSema().Diag(Loc, diag::err_pack_expansion_mismatch_unsupported); + if (getSema().ArgumentPackSubstitutionIndex == -1) return 0; - } assert(getSema().ArgumentPackSubstitutionIndex < (int)Arg.pack_size()); Arg = Arg.pack_begin()[getSema().ArgumentPackSubstitutionIndex]; |

