Fix http://stackoverflow.com/questions/13521163
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Dec 2012 06:44:44 +0000 (06:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Dec 2012 06:44:44 +0000 (06:44 +0000)
commit16b65394ee3ee612b9a16855d5511630cb3baf1c
tree641f62d431e03c659181698d5aede9361161ea60
parent1e3d3874596d6627175b952091f75429d761d673
Fix http://stackoverflow.com/questions/13521163

Don't require that, during template deduction, a template specialization type
as a function parameter has at least as many template arguments as one used in
a function argument (not even if the argument has been resolved to an exact
type); the additional parameters might be provided by default template
arguments in the template. We don't need this check, since we now implement
[temp.deduct.call]p4 with an additional check after deduction.

llvm-svn: 169475
clang/lib/Sema/SemaTemplateDeduction.cpp
clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p9-0x.cpp