diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-27 15:25:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-27 15:25:59 +0000 |
commit | 9f716e4140da8d18165a702f81d2286a12e83a8c (patch) | |
tree | b32d3c53f0fd4b89618aa6c173dbdd956110f931 /lib/Parse/ParseExpr.cpp | |
parent | 25a0fe2a99aaf2d1bf5bdfdae7ab11e2a5e7622f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index b036e568f8..0059a9a0fe 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/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)) { |