[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)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 1 09:41:27 PDT 2024


================
@@ -990,6 +970,18 @@ Sema::BuildMemberReferenceExpr(Expr *BaseExpr, QualType BaseExprType,
                                const Scope *S,
                                bool SuppressQualifierCheck,
                                ActOnMemberAccessExtraArgs *ExtraArgs) {
+  assert(!SS.isInvalid() && "nested-name-specifier cannot be invalid");
+  if (R.wasNotFoundInCurrentInstantiation() ||
+#if 0
----------------
erichkeane wrote:

Oh?

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


More information about the cfe-commits mailing list