]> granicus.if.org Git - clang/commit
Improve template argument deduction in the case where the parameter
authorDouglas Gregor <dgregor@apple.com>
Wed, 30 Sep 2009 22:13:51 +0000 (22:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 30 Sep 2009 22:13:51 +0000 (22:13 +0000)
commit4a5c15f75f76b95e1c2ceb6fa2737dcadd5f4be1
treef32210da86a1180ad3a91260f5fa5201a1224252
parent3307475eb0dd6e5d88be9392ea8247d0b6b812df
Improve template argument deduction in the case where the parameter
type is a template-id (e.g., basic_ostream<CharT, Traits>) and the
argument type is a class that has a derived class matching the
parameter type. Previously, we were giving up on template argument
deduction too early.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p3.cpp