[clang] [Clang] Fix name lookup for dependent bases (PR #114978)

Vladislav Belov via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 06:56:47 PST 2024


================
@@ -170,13 +170,21 @@ bool CXXBasePaths::lookupInBases(ASTContext &Context,
     QualType BaseType =
         Context.getCanonicalType(BaseSpec.getType()).getUnqualifiedType();
 
+    bool isCurrentInstantiation = isa<InjectedClassNameType>(BaseType);
+    if (!isCurrentInstantiation) {
+      if (auto *BaseRecord = cast_or_null<CXXRecordDecl>(
----------------
vbe-sc wrote:

Yes, you are right. Fixed here and in the other part of the code because there is the same case.



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


More information about the cfe-commits mailing list