================
@@ -671,10 +671,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const
LangOptions &LangOpts,
LangOpts.CPlusPlus23 ? "202211L"
: LangOpts.CPlusPlus17 ? "201603L"
: "200907");
- Builder.defineMacro("__cpp_static_assert", LangOpts.CPlusPlus26 ? "202306L"
- : LangOpts.CPlusPlus17
- ? "201411L"
- : "200410");
+ // C++17 / C++26 static_assert backported
+ Builder.defineMacro("__cpp_static_assert", "202306L");
----------------
MitalAshok wrote:
> I'm more thinking of stuff like this: https://godbolt.org/z/qzaMaP4sW.
That problem already exists for these macros:
https://github.com/llvm/llvm-project/blob/4f067dc467a1f97a1b6ac420926da8bab5f243bf/clang/lib/Frontend/InitPreprocessor.cpp#L758-L767
https://godbolt.org/z/nGqPb4Pvr
https://github.com/llvm/llvm-project/pull/102044
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits