]> granicus.if.org Git - clang/commit
When performing substitution of default template template parameters
authorDouglas Gregor <dgregor@apple.com>
Wed, 15 Jun 2011 14:20:42 +0000 (14:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 15 Jun 2011 14:20:42 +0000 (14:20 +0000)
commit383041d31ca14cdf87865ccac6e6f9821d40f61a
tree2b3c13a735d418094cd149d8962209d06918cb6b
parentccbc04eeb7d1f6fc9d9ddd47e0abed0e5b96e318
When performing substitution of default template template parameters
before the template parameters have acquired a proper context (e.g.,
because the enclosing context has yet to be built), provide empty
parameter lists for all outer template parameter scopes to inhibit any
substitution for those template parameters. Fixes PR9643 /
<rdar://problem/9251019>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaTemplate/default-arguments.cpp