]> granicus.if.org Git - clang/commit
When performing template argument deduction for a non-reference
authorDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 09:03:20 +0000 (09:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 6 Mar 2011 09:03:20 +0000 (09:03 +0000)
commit5453d93ab8668f2d9d0bc02182695b02d207e32d
treec7c45222b687bdae965ef5dee147aff2e1e8eeeb
parent708a86690469474f0a8149abca71aa4c62bf9710
When performing template argument deduction for a non-reference
conversion function when we're binding the result to a reference, drop
cv-qualifiers on the type we're referring to, since we should be
deducing a type that can be adjusted (via cv-qualification) to the
requested type. Fixes PR9336, and the remaining Boost.Assign failure.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaCXX/conversion-function.cpp