================
@@ -13589,9 +13577,10 @@ QualType Sema::deduceVarTypeFromInitializer(VarDecl 
*VDecl,
                                                        InitsCopy);
   }
 
+  SmallVector<Expr *, 8> ExpandedInits;
   if (DirectInit) {
     if (auto *IL = dyn_cast<InitListExpr>(Init))
-      DeduceInits = IL->inits();
+      DeduceInits = getInitsWithEmbedExpanded(IL, ExpandedInits);
----------------
akash-manna-sky wrote:

Dropped the expansion there and in the `auto{}` / `new auto{}` siblings. The 
deduced `int` is then rejected by the scalar list-initialization check.


https://github.com/llvm/llvm-project/pull/231938
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to