[clang] [clang] Fix -Wdouble-promotion in C++ list-initialization (PR #159992)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 22 19:40:58 PDT 2025


================
@@ -12797,6 +12797,22 @@ static void CheckCommaOperand(
     S.CheckImplicitConversion(E, T, CC);
 }
 
+static Expr *IgnoreExplicitCastForImplicitConversionCheck(ExplicitCastExpr *E) {
----------------
Sirraide wrote:

Also, looking at this, can you add some tests for `double{{f}}` and `double{(f)}`; I’d expect both of these to just work (in the former case we still only have a single `InitListExpr`).

https://github.com/llvm/llvm-project/pull/159992


More information about the cfe-commits mailing list