From patchwork Wed Mar 22 10:42:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 66739 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 03ADB3857838 for ; Wed, 22 Mar 2023 10:43:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03ADB3857838 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679481781; bh=3hJVELbvIbodGmFqwvrL4qN+lIh0DSYezPOTTDbYkNE=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=MvARBovwIH7nIsTNDn+iQq3Lmcu0+tFfRDk9YE/T5S1kmQosh3dzbzs3kKtGjc/1U NPLCpDCQNg0muoY2QdJJ2i7mI6QHnDcBjIYlOFt95f9DkSjP+O8rmN94uTQqgoo/i9 WMebVkqwYb9Q6mwqSbnylvu+//2If2EEN7BWMy/E= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 6A0F8385840E for ; Wed, 22 Mar 2023 10:42:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A0F8385840E Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-287-tKYHHj0BMMOgGvek8WA0EQ-1; Wed, 22 Mar 2023 06:42:31 -0400 X-MC-Unique: tKYHHj0BMMOgGvek8WA0EQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7819A1C02D31 for ; Wed, 22 Mar 2023 10:42:31 +0000 (UTC) Received: from localhost (unknown [10.33.36.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 36311202701E; Wed, 22 Mar 2023 10:42:31 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: Jason Merrill , Marek Polacek Subject: [PATCH] wwwdocs: Clarify experimental status of C++17 prior to GCC 9 Date: Wed, 22 Mar 2023 10:42:30 +0000 Message-Id: <20230322104230.343644-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" We don't currently have a single page where you can find out when support for a given standard became non-experimental (you have to look through all the gcc-X/changes.html pages to find it). I think we should have that info on the cxx-status.html page. This adds it for C++17, and we can do the same for C++20 when we declare that stable. OK for wwwdocs? -- >8 -- Also link to library docs for C++20 and add a cxx2a anchor which is used by some old links. --- htdocs/projects/cxx-status.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/htdocs/projects/cxx-status.html b/htdocs/projects/cxx-status.html index b5362bba..7f59e5a2 100644 --- a/htdocs/projects/cxx-status.html +++ b/htdocs/projects/cxx-status.html @@ -402,10 +402,12 @@ --> -

C++20 Support in GCC

+

C++20 Support in GCC

GCC has experimental support for the latest revision of the C++ - standard, which was published in 2020.

+ standard, which was published in 2020. + The status of C++20 library features is described in +
the library documentation.

C++20 features are available since GCC 8. To enable C++20 support, add the command-line parameter -std=c++20 @@ -988,14 +990,16 @@

GCC has almost full support for the previous revision of the C++ standard, which was published in 2017. - Some library features are missing or incomplete, as described in + The status of C++17 library features is described in the library documentation.

-

C++17 features are available since GCC 5. This mode is the default - in GCC 11; it can be explicitly selected with the -std=c++17 - command-line flag, or -std=gnu++17 to enable GNU extensions - as well.

+

C++17 mode is the default since GCC 11; it can be explicitly selected + with the -std=c++17 command-line flag, or + -std=gnu++17 to enable GNU extensions as well. + Some C++17 features are available since GCC 5, but support was experimental + and the ABI of C++17 features was not stable until GCC 9. +

C++17 Language Features

@@ -1315,7 +1319,7 @@

GCC has full support for the of the 2014 C++ standard.

-

This mode is the default in GCC 6.1 up until GCC 10 (including); it can +

This mode is the default in GCC 6.1 up until GCC 10 (inclusive); it can be explicitly selected with the -std=c++14 command-line flag, or -std=gnu++14 to enable GNU extensions as well.