September 24, 2022

COSFONE

Networking, PBX, IT, DIY Solution

Redhat: GCC 12 will be released next week to improve C++ language

2 min read

Redhat: GCC 12 will be released next week to improve C++ language



 

Redhat: GCC 12 will be released next week to improve C++ language. 

GCC 12 showcases new “C++” features: Introducing more “C++23”-oriented implementations. 

GCC 12.1 will be released in the next week or so, and Red Hat’s Marek Polacek published a new blog post this week outlining the many C++ language improvements coming in this major update to the GNU compiler collection.

GCC 12 defaults to C++17 (i.e. the GNU++17 “dialect”), but with this annual compiler update, more of C++23 is implemented. Although in GCC 12, both C++20 and C++23 are still considered experimental.

 

Redhat: GCC 12 will be released next week to improve C++ language

 

 

GCC 12 implements C++23’s if consteval, auto(x), non-literal variables in constexpr functions, multi-dimensional subscript operators, elifdef and elifndef preprocessing instructions, extended init-statement, folding trivial functions and other functions .

GCC 12 also introduces various new and improved compiler warnings.

 

More details on the C++ improvements in the upcoming GCC 12 can be found via the Red Hat Developer Blog:

 

https://developers.redhat.com/articles/2022/04/25/new-c-features-gcc-12#conclusion

 

 

GCC 12 also has improvements to the static analyzer and more. In GCC 13 next year, the goal of the development team is to complete support for C++23.

 

 

GCC 12 showcases new “C++” features: Introducing more “C++23”-oriented implementations



You may have missed