]> granicus.if.org Git - clang/commit
When template argument deduction is ignoring qualifiers, perform deep
authorDouglas Gregor <dgregor@apple.com>
Sun, 11 Mar 2012 03:29:50 +0000 (03:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 11 Mar 2012 03:29:50 +0000 (03:29 +0000)
commitfc55a8290a3e81111c0a373e1a04b09dd7da0b98
treed1cf9db2ecd57855548311d22eb2a745edce6f17
parent15dcec73d1e261533c2a32d5f11928570266f7c8
When template argument deduction is ignoring qualifiers, perform deep
structural comparison of non-dependent types. Otherwise, we end up
rejecting cases where the non-dependent types don't match due to
qualifiers in, e.g., a pointee type. Fixes PR12132.

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