From a717febf18626c421f1d0acb0c76239d2c06168b Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 11 Nov 2025 17:55:21 -0500 Subject: [PATCH] Make std::meta::exception::what consteval This enables implementing CWG 3115. --- libstdc++-v3/include/std/meta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/meta b/libstdc++-v3/include/std/meta index 42f84148371..13c79358bc9 100644 --- a/libstdc++-v3/include/std/meta +++ b/libstdc++-v3/include/std/meta @@ -112,7 +112,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION exception& operator=(const exception&) = default; exception& operator=(exception&&) = default; - constexpr const char *what() const noexcept override + consteval const char *what() const noexcept override { // If u8string is not empty and string is empty, conversion // from UTF-8 to ordinary literal encoding failed.