LLVM Clang 11 Adds -std=c++20 Support

Written by Michael Larabel in LLVM on 19 February 2020 at 04:32 AM EST. 3 Comments
LLVM
With C++20 now being deemed complete from the recent ISO C++ meeting in Prague, the GNU Compiler Collection went ahead and added the -std=c++20 flag where as up until that change this weekend relied upon the -std=c++2a switch. LLVM's Clang compiler now has similar treatment on its codebase.

Like GCC, the LLVM Clang C++20 support isn't yet complete but it's working towards that milestone. But with C++20 now deemed complete and set to formally be out in the coming months during the 2020 year, the developers are comfortable exposing it now as -std=c++20 as the target. Additionally, LLVM Clang has shifted its C++2A references in their code-base to C++20. The old C++2A switch will still be an accepted argument for compatibility purposes.

The change along with updating __cplusplus for C++20 was committed on Tuesday for LLVM Clang 11.

The Clang C++ status page shows the imminent LLVM Clang 10 as supporting more of C++20 concepts, designated initializers, constinit, and other bits, but there still is more to support of the updated C++ language. Among the areas left are finishing up concepts, immediate functions, C++ modules, and other features.
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