From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id A749B3858D28; Mon, 17 Oct 2022 08:46:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A749B3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665996419; bh=08NAnKuVENm4Rn7xSda5EvUs94JhZYAM5b8ACP6HJHk=; h=From:To:Subject:Date:From; b=dmylbxvm8kfBM8uMZycdlSAokmmoGUxGi/7i2I4ryeyNEkJVwl6uCYf/Dhvu1dQzf gwElbJUvr7xjV4IdjqSAxmTND5xErsRjjqlhzcmT6tUBD6HmaZpZQKkrLayy+eDyHv KZGSO6+PxnvxSYecCYKsUif/QXCZ+p7mNj3rSZL4= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-3325] libstdc++: Fix value of __cpp_lib_constexpr_charconv X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 59af5e0bdadb1e47cb7f727bc608b2814e48fe27 X-Git-Newrev: 0f4815502d8dac07579dc7a5a40c597a18291b4c Message-Id: <20221017084659.A749B3858D28@sourceware.org> Date: Mon, 17 Oct 2022 08:46:59 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0f4815502d8dac07579dc7a5a40c597a18291b4c commit r13-3325-g0f4815502d8dac07579dc7a5a40c597a18291b4c Author: Jonathan Wakely Date: Mon Oct 17 09:38:02 2022 +0100 libstdc++: Fix value of __cpp_lib_constexpr_charconv libstdc++-v3/ChangeLog: * include/std/charconv (__cpp_lib_constexpr_charconv): Define to correct value. * include/std/version (__cpp_lib_constexpr_charconv): Likewise. * testsuite/20_util/to_chars/constexpr.cc: Check correct value. * testsuite/20_util/to_chars/version.cc: Likewise. Diff: --- libstdc++-v3/include/std/charconv | 2 +- libstdc++-v3/include/std/version | 2 +- libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc | 2 +- libstdc++-v3/testsuite/20_util/to_chars/version.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/include/std/charconv b/libstdc++-v3/include/std/charconv index 4b6cc83a567..7aefdd3298c 100644 --- a/libstdc++-v3/include/std/charconv +++ b/libstdc++-v3/include/std/charconv @@ -51,7 +51,7 @@ #endif #if __cplusplus > 202002L -# define __cpp_lib_constexpr_charconv 202202L +# define __cpp_lib_constexpr_charconv 202207L #endif namespace std _GLIBCXX_VISIBILITY(default) diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index bec9e7aa792..3c7c440bd80 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -302,7 +302,7 @@ #if __cplusplus > 202002L // c++23 #define __cpp_lib_byteswap 202110L -#define __cpp_lib_constexpr_charconv 202202L +#define __cpp_lib_constexpr_charconv 202207L #define __cpp_lib_constexpr_typeinfo 202106L #if __cpp_concepts >= 202002L # define __cpp_lib_expected 202202L diff --git a/libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc b/libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc index 30c591659ee..10855b737c7 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/constexpr.cc @@ -5,7 +5,7 @@ #ifndef __cpp_lib_constexpr_charconv # error "Feature-test macro for constexpr charconv missing in " -#elif __cpp_lib_constexpr_charconv != 202202L +#elif __cpp_lib_constexpr_charconv != 202207L # error "Feature-test macro for constexpr charconv has wrong value in " #endif diff --git a/libstdc++-v3/testsuite/20_util/to_chars/version.cc b/libstdc++-v3/testsuite/20_util/to_chars/version.cc index af06e1bf054..25b1e0036e8 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/version.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/version.cc @@ -11,6 +11,6 @@ #ifndef __cpp_lib_constexpr_charconv # error "Feature-test macro for constexpr charconv missing in " -#elif __cpp_lib_constexpr_charconv != 202202L +#elif __cpp_lib_constexpr_charconv != 202207L # error "Feature-test macro for constexpr charconv has wrong value in " #endif