Fix for template substitution with packs.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 19 Jul 2013 19:40:38 +0000 (19:40 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 19 Jul 2013 19:40:38 +0000 (19:40 +0000)
commit8917ad5d1f1f336dcbb42bd395b02ee0a8618688
treefe588e482c7480fd46763572d4d6d8083256ee46
parent7b4d27c53bba414b4ebe426b17f225a888493745
Fix for template substitution with packs.

When we see a pack, and replace it with a template argument which is
also a pack, we want to use the pack pattern, not the expanded pack.
The caller should take care of expanding the pack afterwards.

Fixes PR16646.

llvm-svn: 186713
clang/lib/Sema/SemaTemplateInstantiate.cpp
clang/test/SemaTemplate/alias-templates.cpp