GCC 11 Aims To Default To C++17 Standard

Written by Michael Larabel in GNU on 2 November 2019 at 08:05 AM EDT. 21 Comments
With the C++17 support in the GNU Compiler Collection (GCC) already being quite mature for about two releases/years, when the GCC 11 development cycle opens they are looking at enabling their GNU dialect of C++17 to be the default standard when compiling C++ code.

As it stands now C++14 is the default C++ standard when compiling with GCC and not specifying an alternative -std=. But for GCC 11 they are planning to bump that to the next revision, C++17. Technically there still would be time to make this change for GCC 10, but it's getting late into the cycle without much time for addressing any fallout that may arise.

As such, discussions this week put the proposal to change the default to -std=gnu++17 (the GNU dialect of C++17) once GCC 11 opens.

GCC 10 "stage one" feature development meanwhile is ending in two weeks. GCC 10 stable should be out in Q2'2020 while GCC 11 will be out in early 2021. The state of C++17 as well as the yet-to-be-released C++2A (C++20) for the GCC compiler can be found on their standards support page.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week