Sony Proposes Changing LLVM Clang Default To C++20 Mode

Written by Michael Larabel in LLVM on 11 January 2025 at 06:33 AM EST. 10 Comments
LLVM
Sony engineers are proposing that the LLVM Clang compiler changes its default C++ mode from C++17 to C++20. This coincides with Sony planning to soon upgrade their PlayStation 5 compiler downstream to C++20 by default.

Sony is planning to soon make C++20 be their default C++ mode for the PlayStation 5 and as such are also suggesting it's about time the upstream Clang compiler makes a similar move.

But currently there are some C++ test cases failing under C++20 mode right now with the current Clang code. Clang also doesn't yet have complete C++20 support either with some modules features still missing and a few other partial features. Sony for their part does plan to bring up an LLVM/Clang bot that builds/tests using C++20 as the default mode to help in the upstream efforts.

The initial discussion over possible C++20 mode by default in Clang can be found via the LLVM Discourse. We'll see where this discussion leads and ultimately when C++20 becomes the default C++ mode for Clang.
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