================
@@ -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
----------------
erichkeane wrote:
Sorry, I'm not getting this? This looks pretty wrong too, why are we creating
these with field-decls if we're going to throw these away? IMO, we shouldn't
even be putting these field decls in.
https://github.com/llvm/llvm-project/pull/167159
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits