Look through using declarations when determining whether one decl hides another

llvm-svn: 93378
This commit is contained in:
Douglas Gregor 2010-01-14 00:06:47 +00:00
parent e4d5432136
commit 0235c4243f
1 changed files with 3 additions and 0 deletions

View File

@ -1916,6 +1916,9 @@ VisibleDeclsRecord::ShadowMapEntry::end() {
}
NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) {
// Look through using declarations.
ND = ND->getUnderlyingDecl();
unsigned IDNS = ND->getIdentifierNamespace();
std::list<ShadowMap>::reverse_iterator SM = ShadowMaps.rbegin();
for (std::list<ShadowMap>::reverse_iterator SMEnd = ShadowMaps.rend();