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

Joyee Cheung via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 04:44:43 PDT 2026


================
@@ -111,3 +119,34 @@ namespace cwg1070 { // cwg1070: 3.5
   C c = {};
 #endif
 } // namespace cwg1070
+
+#if __cplusplus >= 201103L
+namespace cwg1094 { // cwg1094: 24
+enum class E : bool { Zero, One };
----------------
joyeecheung wrote:

Gentle ping, not sure if the comment above answered your question? @Endilll

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


More information about the cfe-commits mailing list