================ @@ -1718,7 +1718,7 @@ void InitListChecker::CheckComplexType(const InitializedEntity &Entity, // the element type of the complex type. The first element initializes // the real part, and the second element intitializes the imaginary part. - if (IList->getNumInits() < 2) + if (IList->getNumInitsWithEmbedExpanded() < 2) ---------------- akash-manna-sky wrote:
Added both on `InitListExpr` and switched every zero/one check to them. `getNumInitsWithEmbedExpanded()` is only left where the real count is needed (array bounds, the hidden `initializer_list` array). https://github.com/llvm/llvm-project/pull/231938 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
