]> granicus.if.org Git - clang/commit
A little template argument deduction test uncovered an "oops". As part
authorDouglas Gregor <dgregor@apple.com>
Fri, 26 Jun 2009 21:40:05 +0000 (21:40 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 26 Jun 2009 21:40:05 +0000 (21:40 +0000)
commit8a5cb1196ee8491570160e36c216631df3a9e95c
tree0ad5545e946ec0a701528b89a2ec29badac2a48b
parent6e5dd866469d577811f3080f43407c12a21db83f
A little template argument deduction test uncovered an "oops". As part
of template instantiation, we were dropping cv-qualifiers on the
instantiated type in a few places. This change reshuffles the
type-instantiation code a little bit so that there's a single place
where we add qualifiers to the instantiated type, so that we won't end
up with this same bug in the future.

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