[clang] Reapply "[Clang][Sema] Fix crash when 'this' is used in a dependent class scope function template specialization that instantiates to a static member function (#87541, #88311)" (PR #88731)

Krystian Stasiowski via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 15 09:25:51 PDT 2024


sdkrystian wrote:

The primary change since #88311 is `UnresolvedLookupExpr::Create` is called directly in `BuildPossibleImplicitMemberExpr` with `KnownDependent` as `true` (which causes the expression type to be set to `ASTContext::DependentTy`). This ensures that any further semantic analysis involving the type of the potentially implicit class member access expression is deferred until instantiation. 

https://github.com/llvm/llvm-project/pull/88731


More information about the cfe-commits mailing list