[clang] [clang][ExprConst] Support virtual bases in C++26 (PR #204289)

Yihan Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 06:59:04 PDT 2026


================
@@ -5468,22 +5531,44 @@ static bool handleDefaultInitValue(QualType T, APValue &Result) {
       Result = APValue((const FieldDecl *)nullptr);
       return true;
     }
+
+    // bases() includes directly specified virtual bases as well.
+    unsigned NonVirtualBases =
----------------
yronglin wrote:

Same as below

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


More information about the cfe-commits mailing list