LLVM Clang 6.0 Now Defaults To C++14

Written by Michael Larabel in LLVM on 9 December 2017 at 08:49 AM EST. 7 Comments
Up to now LLVM's Clang C/C++ compiler has defaulted to using C++98/GNU++98 as its default C++ standard, but fortunately that's no more.

Clang's default C++ dialect is now GNU++14 version of C++14 rather than GNU++98 (C++98).

The older versions of the C++ standard remain available and can be set via the -std= argument, just as those previously could have specified C++11 / C++14 / C++17, but now in cases where not specified, GNU++14/C++14 is the default.

The change is present in Clang 6.0 that will be released as stable in March while the feature freeze on this half-year LLVM/Clang update will go into feature freeze in January.

This C++14 as the default matches what GCC does currently for their default C++ standard when they switched from GNU++98 back in GCC 6. Matching GCC's behavior also explains why they didn't jump straight to the just-standardized C++17.
Related News
About The Author
Author picture

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