[clang] [Clang][Sema] Fix lookup of dependent operator= outside of complete-class contexts (PR #91498)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed May 8 12:32:10 PDT 2024


================
@@ -1269,19 +1269,19 @@ struct FindLocalExternScope {
 };
 } // end anonymous namespace
 
+static bool isDependentAssignmentOperator(DeclarationName Name,
+                                          DeclContext *LookupContext) {
+  auto *LookupRecord = dyn_cast_if_present<CXXRecordDecl>(LookupContext);
----------------
erichkeane wrote:

```suggestion
  const auto *LookupRecord = dyn_cast_if_present<CXXRecordDecl>(LookupContext);
```

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


More information about the cfe-commits mailing list