]> granicus.if.org Git - clang/commit
When resolving default template arguments, it should be done in the declaration context
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 25 Apr 2012 18:39:17 +0000 (18:39 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 25 Apr 2012 18:39:17 +0000 (18:39 +0000)
commitad579916bc402cf617793e94770bab78e9bdaec8
treef1d15d2facdb08b65d311c8f98daebfa2c1cb878
parent5d59b79c2fd8783900e52cf2dd6add5d3627b2fc
When resolving default template arguments, it should be done in the declaration context
of the template what we are going to instantiate.

Fixes various crashes of rdar://11242625 & http://llvm.org/PR11421.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155576 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/dependent-names.cpp