[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 19 09:53:24 PDT 2025


================
@@ -0,0 +1,51 @@
+// RUN: %clang_cc1 -verify=normal,both -std=c++23 %s
+// RUN: %clang_cc1 -verify=implicit,both -fimplicit-constexpr -std=c++23 %s
----------------
Sirraide wrote:

We should also test at least C++17 mode and see how this interacts with features that are not allowed in `constexpr` functions in that language mode (i.e. destructors, operator `new`, `goto`).

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


More information about the cfe-commits mailing list