GCC 11 Proposal Would Default To C++17 Level Features

Written by Michael Larabel in GNU on 17 May 2020 at 12:09 AM EDT. 10 Comments
GNU
Since last year's GCC 9 release the C++17 support has been considered stable and with the changeover to it as the default C++ dialect having not happened for the recent GCC 10 release, developers are now looking at increasing the default C++ version to 17 for next year's GCC 11 release.

Red Hat's Marek Polacek sent out the patch this weekend that would change the default dialect to C++17 from the existing C++14 default. This only affects the GCC C++ compiler behavior when no other -std= is specified whether it be C++17 or even the in-progress C++20 support as well as falling back to older C++ versions.

C++14 has been the default since GCC 6 and thus for GCC 11 they are looking at bumping it to C++17. By the time of GCC 11's release a year from now their C++20 support should largely be in order, but still will likely be too immature for making it the default at that time, more than likely waiting until GCC 12 or so. Again though for those wanting C++20 features it can be easily set via the -std switch.

Given GCC 11 development only recently opened and feature work happening over the next several months, the patch proposal in defaulting the C++ front-end to C++17 will more than likely happen this cycle. So you can expect this change and a lot more building up for the GNU Compiler Collection over the coming months.
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