[clang] [Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (PR #102044)

Yashwant Singh via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 02:12:35 PDT 2024


yashssh wrote:

Reigniting the discussion around `__cpp_static_assert`'s value set to `202306L` . We are seeing some failures in perennial c++20 tests who assume the value of macro to be `201411L` which is consistent with how GCC defines value of these macros (see https://godbolt.org/z/xE9bWsdKT)

>From the discussions earlier I'm getting the impression that this has more to do with c++ standard not properly defining the values of these macros for older revisions. What can be the best way forward to fix this? Have it consistent with GCC?


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


More information about the cfe-commits mailing list