GCC 14 Adds Initial “-std=c++26” Plumbing

0
113

Similar to how LLVM Clang 17 adds support for -std=c++26 as the open source compiler begins work on the next major revision of the C++ programming language, the GCC 14 compiler code now has support for -std as well =c++26 added compiler option.

As approval of C++26 documents begins and C++23 is essentially complete, Red Hat’s Marek Polacek has the first basics for -std=c++26 and the GNU dialect with -std=gnu++ 26 and added also considers c++2c and gnu++2c as alternative values.

GCC C++26

This work establishes the C++2026 standard and only sets up the infrastructure, but does not yet add any new C++26 features.

By the time GCC 14 is released next year, some experimental C++26 features will likely be added to the codebase, but for now, at least as of this merged patch on Friday, the C++26 options will be recognized by the latest open-source compiler code.

www.phoronix.com

https://www.phoronix.com/news/GCC-Lands-Std-CPP26-GNU26