GCC 14 Adds Initial "-std=c++26" Plumbing

Written by Michael Larabel in GNU on 24 June 2023 at 06:00 AM EDT. 15 Comments
GNU
Similar to LLVM Clang 17 adding -std=c++26 support as the open-source compiler begins work on the next major revision of the C++ programming language, the GCC 14 compiler code has now also added the -std=c++26 compiler option.

With C++26 papers beginning to be approved and C++23 essentially finished, Red Hat's Marek Polacek has added the initial plumbing for -std=c++26 and the GNU dialect with -std=gnu++26 as well as also honoring c++2c and gnu++2c as alternative values.

GCC C++26


This work establishes the C++2026 standard and just gets the infrastructure in place but doesn't yet begin adding any new C++26 features.

By the time of the GCC 14 release next year it's likely some experimental C++26 features will be added to the code-base, but for now at least as of this merged patch on Friday, the C++26 options are being recognized by the latest open-source compiler code.
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