diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-07-27 17:28:06 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-07-27 19:38:22 -0700 |
commit | 23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85 (patch) | |
tree | d29750f236b3fe9caef8120ca22cdf152bc51390 /clang/lib/Parse/ParseDecl.cpp | |
parent | 6bf989b9474ace6a35021e6123d13b7fd59bf9f4 (diff) | |
download | llvm-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.cpp | 2 |
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: |