[clang] [Clang]fix dependent qualified base member lookup crash (PR #199403)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 06:17:02 PDT 2026


================
@@ -643,6 +642,8 @@ bool Sema::CheckQualifiedMemberReference(Expr *BaseExpr,
       continue;
 
     CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl();
+    if (!BaseRecord->hasDefinition() || !MemberRecord->hasDefinition())
+      return false;
----------------
Serosh-commits wrote:

> or have this user moved to after we do.

@mizvekov i have implemented this because  the early represantaion was a bit aggressive  to some  of tests were failing so implemented the second option and removed that guard thanks 

well  i am still trying to implement the early representation locally if it will work i can add up a follow up if u like that to do

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


More information about the cfe-commits mailing list