aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-07-27 17:28:06 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-07-27 19:38:22 -0700
commit23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85 (patch)
treed29750f236b3fe9caef8120ca22cdf152bc51390 /clang/lib/Parse/ParseDecl.cpp
parent6bf989b9474ace6a35021e6123d13b7fd59bf9f4 (diff)
downloadllvm-23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85.zip
llvm-23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85.tar.gz
llvm-23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85.tar.bz2
Don't form a 'context-independent expr' reference to a member during
name annotation. Instead, defer forming the member access expression or DeclRefExpr until we build the use of ClassifyName's result. Just build an UnresolvedLookupExpr to track the LookupResult until we're ready to consume it. This also reverts commit 2f7269b6773de2750f9cd1417ef5f21cd6cf7a91 (other than its testcase). That change was an attempted workaround for the same problem.
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index c87d240..7b3a98e 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2837,7 +2837,7 @@ Parser::DiagnoseMissingSemiAfterTagDefinition(DeclSpec &DS, AccessSpecifier AS,
case Sema::NC_Unknown:
case Sema::NC_NonType:
case Sema::NC_DependentNonType:
- case Sema::NC_ContextIndependentExpr:
+ case Sema::NC_OverloadSet:
case Sema::NC_VarTemplate:
case Sema::NC_FunctionTemplate:
case Sema::NC_Concept: