]> granicus.if.org Git - clang/commit
When determining template instantiation arguments within a function
authorDouglas Gregor <dgregor@apple.com>
Sat, 5 Mar 2011 17:54:25 +0000 (17:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 5 Mar 2011 17:54:25 +0000 (17:54 +0000)
commitc494f77363f057dd8619fec4e885c4f80e3d1b66
tree736d86e0a70ccbfb484e91acd230c096955acd20
parent0b4bcb639a9aab9c466a9e6d6e61b3bd1bb36d68
When determining template instantiation arguments within a function
template (not a specialization!), use the "injected" function template
arguments, which correspond to the template parameters of the function
template. This is required when substituting into the default template
parameters of template template parameters within a function template.

Fixes PR9016.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127092 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
lib/AST/DeclTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaTemplate/issue150.cpp