summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-27 15:25:59 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-27 15:25:59 +0000
commit205a3614135716b20b77ad1901332095dc2fa0f3 (patch)
tree3e357992a0e68aae929a159143e125ca98042af4 /clang/lib/Parse/ParseExpr.cpp
parent9b253e651802bda7b8fda2928dbcfa77773cff9d (diff)
downloadbcm5719-llvm-205a3614135716b20b77ad1901332095dc2fa0f3.tar.gz
bcm5719-llvm-205a3614135716b20b77ad1901332095dc2fa0f3.zip
When we've parsed a nested-name-specifier in a member access
expression, "forget" about the object type; only the nested-name-specifier matters for name lookup purposes. Fixes PR7239. llvm-svn: 104834
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index b036e568f8b..0059a9a0fe4 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1022,6 +1022,8 @@ Parser::ParsePostfixExpressionSuffix(OwningExprResult LHS) {
ParseOptionalCXXScopeSpecifier(SS, ObjectType, false,
&MayBePseudoDestructor);
+ if (SS.isNotEmpty())
+ ObjectType = 0;
}
if (Tok.is(tok::code_completion)) {
OpenPOWER on IntegriCloud