[all-commits] [llvm/llvm-project] 23d652: Don't form a 'context-independent expr' reference ...

Richard Smith via All-commits all-commits at lists.llvm.org
Mon Jul 27 19:38:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85
      https://github.com/llvm/llvm-project/commit/23d6525cbdc9de7cbfe7640d1e9e4f25a0c5dd85
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M clang/include/clang/Basic/TokenKinds.def
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseExpr.cpp
    M clang/lib/Parse/ParseTentative.cpp
    M clang/lib/Parse/Parser.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExprMember.cpp
    M clang/test/SemaTemplate/member-access-expr.cpp

  Log Message:
  -----------
  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.




More information about the All-commits mailing list