CreateDeclRefExprs that point to UnresolvedUsingDecls.

llvm-svn: 80413
This commit is contained in:
Anders Carlsson 2009-08-29 01:06:32 +00:00
parent a884e67485
commit 938b10079a
2 changed files with 11 additions and 0 deletions

View File

@ -1036,6 +1036,11 @@ Sema::BuildDeclarationNameExpr(SourceLocation Loc, NamedDecl *D,
else if (TemplateDecl *Template = dyn_cast<TemplateDecl>(D))
return BuildDeclRefExpr(Template, Context.OverloadTy, Loc,
false, false, SS);
else if (UnresolvedUsingDecl *UD = dyn_cast<UnresolvedUsingDecl>(D))
return BuildDeclRefExpr(UD, Context.DependentTy, Loc,
/*TypeDependent=*/true,
/*ValueDependent=*/true, SS);
ValueDecl *VD = cast<ValueDecl>(D);
// Check whether this declaration can be used. Note that we suppress

View File

@ -28,3 +28,9 @@ template <typename T> struct D : A<T> {
};
template<typename T> void D<T>::f() { }
template<typename T> struct E : A<T> {
using A<T>::f;
void g() { f(); }
};