]> granicus.if.org Git - clang/commit
Fix assertion failure on deduction failure due to too short template argument list.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Jan 2017 02:31:32 +0000 (02:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Jan 2017 02:31:32 +0000 (02:31 +0000)
commitcf2ed0b529c8fb34b2e098c30adce12a577d05f3
treebb8c350df779420c2801426bb18fca24961aeb73
parenta82cebf937657a66d2c2dd474a249c84541afdcf
Fix assertion failure on deduction failure due to too short template argument list.

We were previously incorrectly using TDK_TooFewArguments to report a template
argument list that's too short, but it actually means that the number of
arguments in a top-level function call was insufficient. When diagnosing the
problem, SemaOverload would (rightly) assert that the failure kind didn't make
any sense.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291064 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaTemplate/deduction.cpp