]> granicus.if.org Git - clang/commit
Fix name lookup with dependent using decls.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 20 Aug 2013 00:39:40 +0000 (00:39 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 20 Aug 2013 00:39:40 +0000 (00:39 +0000)
commit13b572c9e84729b4bd5f00d0f1452a4b93211cde
treefd08a6aa18a2aac75354e332fc88b6ef1619b972
parentf0dd853bb1e8f3e59b169e6d34a8556c6003c47c
Fix name lookup with dependent using decls.

We previously mishandled UnresolvedUsingValueDecls in
NamedDecl::declarationReplaces, which caused us to forget decls
when there are multiple dependent using decls for the same name.

Fixes PR16936.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188737 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/SemaTemplate/instantiate-using-decl.cpp