================
@@ -7291,11 +7291,26 @@ ExprResult Sema::CheckTemplateArgument(NamedDecl 
*Param, QualType ParamType,
     Result = ActOnConstantExpression(Result.get());
     if (Result.isInvalid() || !Result.get())
       return ExprError();
+    Expr* OldDeductionArg = DeductionArg;
     setDeductionArg(ActOnFinishFullExpr(Result.get(), Arg->getBeginLoc(),
                                         /*DiscardedValue=*/false,
                                         /*IsConstexpr=*/true,
                                         /*IsTemplateArgument=*/true)
                         .get());
+    // As for designated initializer, there might be multiple candidate
----------------
Backl1ght wrote:

Field decls are required by checks after `CheckDesignatedInitializer`. e.g. 

https://github.com/llvm/llvm-project/blob/545c3022d28164f5040036a7b515a85f74dbd5cc/clang/lib/Sema/SemaInit.cpp#L2498-L2516

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

Reply via email to