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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 22 03:41:15 PDT 2026


================
@@ -6,6 +6,14 @@
 // RUN: %clang_cc1 -std=c++23 %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,since-cxx11,since-cxx14
 // RUN: %clang_cc1 -std=c++2c %s -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,since-cxx11,since-cxx14
 
+// RUN: %clang_cc1 -std=c++98 %s -fexceptions -fcxx-exceptions -pedantic-errors -fexperimental-new-constant-interpreter -verify-directives -verify=expected,cxx98
----------------
Endilll wrote:

Enabling the new constant interpreter in C++ DR tests is out of scope of this PR. If you need the coverage, add it somewhere in `clang/test/SemaCXX`.

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


More information about the cfe-commits mailing list