]> granicus.if.org Git - clang/commit
Do not substitute template types if template has dependent context
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 10 Dec 2010 17:08:53 +0000 (17:08 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 10 Dec 2010 17:08:53 +0000 (17:08 +0000)
commit9f6f6a107287bd81aedab8b578216535b0b51d0f
tree9a92d8cab97dc276b8d09f5b19db827a1fd84826
parent9913d6e086b95cdc791b52c10f773dfd1267f5f8
Do not substitute template types if template has dependent context

We should not substitute template types if the template has a dependent
context because the template argument stack is not yet fully formed.
Instead, defer substitution until the template has a non-dependent
context (i.e. instantiation of an outer template).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121491 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/instantiate-template-template-parm.cpp