hankadusikova marked 3 inline comments as done. hankadusikova added a comment.
In D100057#2675085 <https://reviews.llvm.org/D100057#2675085>, @jfb wrote: > A few nits, but this is good otherwise! Having an aggregate with multiple (empty) bases initialised with nonempty {} is a hard error, hence the 1. https://compiler-explorer.com/z/hKqxWjo3G ================ Comment at: clang/lib/Sema/SemaInit.cpp:1018 + if (CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(ParentRD)) { + if (CXXRD->getNumBases() == 1) { + return ParentRD->field_begin() == ParentRD->field_end(); ---------------- jfb wrote: > Multiple empty bases isn't a common thing, right? I don't think so, but would > rather check. Having an aggregate with multiple (empty) bases initialised with {} is a hard error, hence the 1. https://compiler-explorer.com/z/hKqxWjo3G CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100057/new/ https://reviews.llvm.org/D100057 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits