On Fri, Jun 26, 2020 at 03:34:09PM -0400, Marek Polacek via Gcc-patches wrote:
> As discussed last month:
> <https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545879.html>
> 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 <pola...@redhat.com>
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.</p>
 <!-- .................................................................. -->
 <h2>Caveats</h2>
 <ul>
+  <li>The default mode for C++ is now <code>-std=gnu++17</code> instead of
+      <code>-std=gnu++14</code>.</li>
+
   <li>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 <code>-dumpbase</code>,
@@ -72,6 +75,7 @@ a work-in-progress.</p>
 
 <h3 id="cxx">C++</h3>
 <ul>
+  <li>The default mode has been changed to <code>-std=gnu++17</code>.</li>
   <li>Several C++ Defect Reports have been resolved, e.g.:
   <ul>
     <li>DR 1512, Pointer comparison vs qualification conversions</li>
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 @@
   <a 
href="https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2017";>the
 library documentation</a>.
   </p>
 
-  <p>C++17 features are available since GCC 5. To enable C++17
-      support, add the command-line parameter <code>-std=c++17</code>
-      to your <code>g++</code> command line. Or, to enable GNU
-      extensions in addition to C++17 features,
-    add <code>-std=gnu++17</code>.</p>
+  <p>C++17 features are available since GCC 5.  This mode is the default
+  in GCC 11; it can be explicitly selected with the <code>-std=c++17</code>
+  command-line flag, or <code>-std=gnu++17</code> to enable GNU extensions
+  as well.</p>
 
   <h2>C++17 Language Features</h2>
 
@@ -902,8 +901,8 @@
   <p>GCC has full support for the previous revision of the C++
   standard, which was published in 2014.</p>
 
-  <p>This mode is the default in GCC 6.1 and above; it can be explicitly
-  selected with the <code>-std=c++14</code> command-line flag,
+  <p>This mode is the default in GCC 6.1 up until GCC 10 (including); it can
+  be explicitly selected with the <code>-std=c++14</code> command-line flag,
   or <code>-std=gnu++14</code> to enable GNU extensions as well.</p>
 
   <h2>C++14 Language Features</h2>

Reply via email to