[clang] [Clang] Fix conversion from floats to bool-backed enums per CWG1094 (PR #211172)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 22 01:18:24 PDT 2026


================
@@ -1489,16 +1489,26 @@ static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr,
       SrcExpr = ExprError();
       return TC_Failed;
     }
+    // [expr.static.cast]p8
----------------
cor3ntin wrote:

```suggestion
    // C++26 [expr.static.cast]p8
```

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


More information about the cfe-commits mailing list