]> granicus.if.org Git - clang/commit
When template deduction fails on a derived class, try a template deduction on
authorRichard Trieu <rtrieu@google.com>
Wed, 7 Nov 2012 21:17:13 +0000 (21:17 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 7 Nov 2012 21:17:13 +0000 (21:17 +0000)
commit910515bc02872bd680e422f75079534d00093bc5
tree497cc6f88f14c3288d2f3664aea8a61221640bac
parent1da01d6908de90c6856e7c93460b67bf3bb28dd9
When template deduction fails on a derived class, try a template deduction on
the base class.  If the base class deduction succeeds, use those results.  If
it fails, keep using the results from the derived class template deduction.

This prevents an assertion later where the type of deduction failure doesn't
match up with the template deduction info.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167550 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaTemplate/derived.cpp [new file with mode: 0644]