[clang] [Clang][Sema] Diagnose class member access expressions naming non-existent members of the current instantiation prior to instantiation in the absence of dependent base classes (PR #84050)

Krystian Stasiowski via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 1 09:56:34 PDT 2024


================
@@ -1287,7 +1287,10 @@ static ExprResult LookupMemberExpr(Sema &S, LookupResult &R,
     return ExprError();
 
   QualType BaseType = BaseExpr.get()->getType();
+
+#if 0
----------------
sdkrystian wrote:

This assertion should be deleted since the lookup context could be the current instantiation (ergo dependent). 

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


More information about the cfe-commits mailing list