diff options
author | John McCall <rjmccall@apple.com> | 2009-12-02 03:53:29 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-02 03:53:29 +0000 |
commit | cd4b47747b740447200eea7fe78e6010e4b286d6 (patch) | |
tree | 2c62be362cfce7a523c800d8100bcef9c2ba0253 /clang/lib/Sema/Sema.h | |
parent | 55a17b66cd66c86f2005eb065c78ebbae1f8fe27 (diff) | |
download | bcm5719-llvm-cd4b47747b740447200eea7fe78e6010e4b286d6.tar.gz bcm5719-llvm-cd4b47747b740447200eea7fe78e6010e4b286d6.zip |
Stop trying to analyze class-hierarchies for dependently-scoped id-expressions;
there's nothing interesting we can say now that we're correctly not requiring
the qualifier to name a known base class in dependent contexts.
Require scope specifiers on member access expressions to name complete types
if they're not dependent; delay lookup when they are dependent.
Use more appropriate diagnostics when qualified implicit member access
expressions find declarations from unrelated classes.
llvm-svn: 90289
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 3f8babbbbe9..8503887a617 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1438,7 +1438,7 @@ public: OwningExprResult ActOnDependentIdExpression(const CXXScopeSpec &SS, DeclarationName Name, SourceLocation NameLoc, - bool CheckForImplicitMember, + bool isAddressOfOperand, const TemplateArgumentListInfo *TemplateArgs); OwningExprResult BuildDeclRefExpr(NamedDecl *D, QualType Ty, @@ -1549,8 +1549,7 @@ public: DeclPtrTy ObjCImpDecl); bool CheckQualifiedMemberReference(Expr *BaseExpr, QualType BaseType, - NestedNameSpecifier *Qualifier, - SourceRange QualifierRange, + const CXXScopeSpec &SS, const LookupResult &R); OwningExprResult ActOnDependentMemberExpr(ExprArg Base, |