From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com
(us-smtp-delivery-1.mimecast.com [205.139.110.120])
by sourceware.org (Postfix) with ESMTP id 3205E3858D34
for ; Fri, 26 Jun 2020 19:58:24 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3205E3858D34
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-312-BR-W2wQ5NImrfXSP2rfdlA-1; Fri, 26 Jun 2020 15:58:16 -0400
X-MC-Unique: BR-W2wQ5NImrfXSP2rfdlA-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com
[10.5.11.23])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EFF2110059A3
for ; Fri, 26 Jun 2020 19:58:15 +0000 (UTC)
Received: from redhat.com (ovpn-117-59.rdu2.redhat.com [10.10.117.59])
by smtp.corp.redhat.com (Postfix) with ESMTPS id ABFA519C4F
for ; Fri, 26 Jun 2020 19:58:15 +0000 (UTC)
Date: Fri, 26 Jun 2020 15:58:13 -0400
From: Marek Polacek
To: GCC Patches
Subject: Re: PSA: Default C++ dialect is now C++17
Message-ID: <20200626195813.GC3394@redhat.com>
References: <20200626193409.GB3394@redhat.com>
MIME-Version: 1.0
In-Reply-To: <20200626193409.GB3394@redhat.com>
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Spam-Status: No, score=-15.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_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Fri, 26 Jun 2020 19:58:25 -0000
On Fri, Jun 26, 2020 at 03:34:09PM -0400, Marek Polacek via Gcc-patches wrote:
> As discussed last month:
>
> it's time to change the C++ default to gnu++17. I've committed the patch after
> testing x86_64-pc-linux-gnu and powerpc64le-unknown-linux-gnu. Brace yourselves!
I've also updated wwwdocs to that effect:
commit 1528c44593180742ab827f9ea66d31e75b803de0
Author: Marek Polacek
Date: Fri Jun 26 15:56:12 2020 -0400
The default C++ dialect in GCC 11 is C++17.
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index dc22f216..cea01a9c 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -30,6 +30,9 @@ a work-in-progress.
Caveats
+ - The default mode for C++ is now
-std=gnu++17
instead of
+ -std=gnu++14
.
+
- Naming and location of auxiliary and dump output files changed.
If you compile multiple input files in a single command, if you
enable Link Time Optimization, or if you use
-dumpbase
,
@@ -72,6 +75,7 @@ a work-in-progress.
C++
+ - The default mode has been changed to
-std=gnu++17
.
- Several C++ Defect Reports have been resolved, e.g.:
- DR 1512, Pointer comparison vs qualification conversions
diff --git a/htdocs/projects/cxx-status.html b/htdocs/projects/cxx-status.html
index b5cdd1a9..ed1a3440 100644
--- a/htdocs/projects/cxx-status.html
+++ b/htdocs/projects/cxx-status.html
@@ -577,11 +577,10 @@
the library documentation.
- C++17 features are available since GCC 5. To enable C++17
- support, add the command-line parameter -std=c++17
- to your g++
command line. Or, to enable GNU
- extensions in addition to C++17 features,
- add -std=gnu++17
.
+ 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 Language Features
@@ -902,8 +901,8 @@
GCC has full support for the previous revision of the C++
standard, which was published in 2014.
- This mode is the default in GCC 6.1 and above; it can be explicitly
- selected with the -std=c++14
command-line flag,
+
This mode is the default in GCC 6.1 up until GCC 10 (including); it can
+ be explicitly selected with the -std=c++14
command-line flag,
or -std=gnu++14
to enable GNU extensions as well.
C++14 Language Features