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 6A0F8385840E
for ; Wed, 22 Mar 2023 10:42:33 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A0F8385840E
Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1679481753;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding;
bh=3hJVELbvIbodGmFqwvrL4qN+lIh0DSYezPOTTDbYkNE=;
b=e08SdmP7Vy25jbAb+550Lkvi6dwhDci8vssiZ3MGACkhuWfEfbmfdfFLvcdrjXC3i2O5MU
HLDTWHikN/0rLjQz4NmOWALIQD94/8zHAAEk8DJZTDWqHIl5phD2P/lFlfNF2UFHCeqisA
ssa989+v4sfPT/3Lm6NViFX2uy3s+B0=
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)
From: Jonathan Wakely
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
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
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
List-Id:
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
+
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.
--
2.39.2