From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 296303857371 for ; Mon, 16 May 2022 13:57:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 296303857371 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-mwj94N19PS6dwy6dQqTSJw-1; Mon, 16 May 2022 09:57:50 -0400 X-MC-Unique: mwj94N19PS6dwy6dQqTSJw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7A2EB86B8AE; Mon, 16 May 2022 13:57:50 +0000 (UTC) Received: from localhost (unknown [10.33.36.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2406B40D1B98; Mon, 16 May 2022 13:57:50 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed 2/4] libstdc++: Add C++23 status docs Date: Mon, 16 May 2022 14:57:46 +0100 Message-Id: <20220516135748.42548-2-jwakely@redhat.com> In-Reply-To: <20220516135748.42548-1-jwakely@redhat.com> References: <20220516135748.42548-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2022 13:57:54 -0000 Pushed to trunk. Backports to gcc-11 and gcc-12 to follow. -- >8 -- These are the C++23 proposals already supported in the gcc-11 branch. libstdc++-v3/ChangeLog: * doc/xml/manual/intro.xml: Include new chapter. * doc/xml/manual/status_cxx2020.xml: Tweak release numbers. * doc/xml/manual/status_cxx2023.xml: New file. * doc/html/*: Regenerate. --- libstdc++-v3/doc/html/index.html | 2 +- libstdc++-v3/doc/html/manual/index.html | 4 +- libstdc++-v3/doc/html/manual/intro.html | 2 +- libstdc++-v3/doc/html/manual/status.html | 109 +++++++- libstdc++-v3/doc/xml/manual/intro.xml | 10 +- .../doc/xml/manual/status_cxx2020.xml | 16 +- .../doc/xml/manual/status_cxx2023.xml | 232 ++++++++++++++++++ 7 files changed, 347 insertions(+), 28 deletions(-) create mode 100644 libstdc++-v3/doc/xml/manual/status_cxx2023.xml diff --git a/libstdc++-v3/doc/xml/manual/intro.xml b/libstdc++-v3/doc/xml/manual/intro.xml index 548b632b6e4..290e5d3a74e 100644 --- a/libstdc++-v3/doc/xml/manual/intro.xml +++ b/libstdc++-v3/doc/xml/manual/intro.xml @@ -47,15 +47,19 @@ - + + + + + - + - + diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml index 7611d174233..d979db06b11 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml @@ -25,8 +25,8 @@ not in any particular release. -The following table lists new library features that have been accepted into -the C++20 working draft. The "Proposal" column provides a link to the +The following table lists new library features that are included in +the C++20 standard. The "Proposal" column provides a link to the ISO C++ committee proposal that describes the feature, while the "Status" column indicates the first version of GCC that contains an implementation of this feature (if it has been implemented). @@ -359,7 +359,7 @@ or any notes about the implementation. P0053R7 - 11 + 11.1 __cpp_lib_syncbuf >= 201711L @@ -369,7 +369,7 @@ or any notes about the implementation. P0753R2 - 11 + 11.1 __cpp_lib_syncbuf >= 201803L @@ -643,7 +643,7 @@ or any notes about the implementation. P0966R1 - 11 + 11.1 @@ -1039,7 +1039,7 @@ or any notes about the implementation. P0476R2 - 11 + 11.1 __cpp_lib_bit_cast >= 201806L @@ -1424,7 +1424,7 @@ or any notes about the implementation. P1208R6 - 11 + 11.1 __cpp_lib_source_location >= 201907L @@ -1436,7 +1436,7 @@ or any notes about the implementation. P0408R7 - 11 + 11.1 diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2023.xml b/libstdc++-v3/doc/xml/manual/status_cxx2023.xml new file mode 100644 index 00000000000..f1244da9dc8 --- /dev/null +++ b/libstdc++-v3/doc/xml/manual/status_cxx2023.xml @@ -0,0 +1,232 @@ +
+ + +C++ 2023 + + ISO C++ + 2023 + + + + +In this implementation the -std=gnu++23 or +-std=c++23 flag must be used to enable language +and library +features. See dialect +options. The pre-defined symbol +__cplusplus is used to check for the +presence of the required flag. + + + +This section describes the C++23 and library TS support in mainline GCC, +not in any particular release. + + + +The following table lists new library features that have been accepted into +the C++23 working draft. The "Proposal" column provides a link to the +ISO C++ committee proposal that describes the feature, while the "Status" +column indicates the first version of GCC that contains an implementation of +this feature (if it has been implemented). +A dash (—) in the status column indicates that the changes in the proposal +either do not affect the code in libstdc++, or the changes are not required for conformance. +The "SD-6 Feature Test / Notes" column shows the corresponding macro or header from +SD-6: +Feature-testing recommendations for C++ (where applicable) +or any notes about the implementation. + + + +C++ 2023 Library Features + + + + + + + + + Library Feature + Proposal + Status + SD-6 Feature Test / Notes + + + + + + + + Ranges and Views + + + + + Range constructor for std::string_view + + + P1989R2 + + + 11.1 + + + + + join_view should join all views of ranges + + + P2328R1 + + + 11.2 + + + + + + Clarifying range adaptor objects + + + P2281R1 + + + 11.1 + + + + + Views should not be required to be default constructible + + + P2325R3 + + + 11.3 + __cpp_lib_ranges >= 202106L + + + + Conditionally borrowed ranges + + + P2017R1 + + + 11.1 + + + + + Require span & basic_string_view to be Trivially Copyable + + + P2251R1 + + + Yes + + + + + + Compile-time programming + + + + + A proposal for a type trait to detect scoped enumerations + + + P1048R1 + + + 11.1 + __cpp_lib_is_scoped_enum >= 202011L + + + + std::to_underlying for enumerations + + + P1682R3 + + + 11.1 + __cpp_lib_to_underlying >= 202102L + + + + + Strings and text + + + + + string contains function + + + P1679R3 + + + 11.1 + __cpp_lib_string_contains >= 202011L + + + + + Miscellaneous + + + + + Inheriting from std::variant + + + P2162R2 + + + 11.3 + __cpp_lib_variant >= 202102L + + + + Printing volatile Pointers + + + P1147R1 + + + 11.3 + + + + + Clarifying the status of the "C headers" + + + P2340R1 + + + Yes + + + + + Relax Requirements for time_point::clock + + + P2212R2 + + + Yes + + + + + +
+ +
-- 2.34.3