[modules] A using-declaration doesn't introduce a new entity, just a new name

for an existing entity, and as such a using-declaration doesn't need to
conflict with a hidden entity (nor vice versa).

llvm-svn: 247654
This commit is contained in:
Richard Smith
2015-09-15 01:28:55 +00:00
parent ca5ab2b0d4
commit f091e129db
5 changed files with 112 additions and 3 deletions

View File

@@ -7821,7 +7821,8 @@ bool Sema::CheckUsingShadowDecl(UsingDecl *Using, NamedDecl *Orig,
FoundEquivalentDecl = true;
}
(isa<TagDecl>(D) ? Tag : NonTag) = D;
if (isVisible(D))
(isa<TagDecl>(D) ? Tag : NonTag) = D;
}
if (FoundEquivalentDecl)