Which revision of the C standard serves as the basis for C++14?
C++11 is based on C99 and was released a few months before C11. Will C++14 be based on C11? The current draft still (as of Dec 2013) seems to say "based on ISO/IEC 9899:1999", i.e. C99, and I heard repeatedly that C++14 is "nearly complete" and only undergoing minor tweaks at this point. Is it plausible that the dependency on C will be revised before the new standard goes to the vote?
Let's continue with a discussion of all the five different standards of C — K&R C, ANSI C, C99, C11 and Embedded C.
What is C standard? The latest C standard is ISO/IEC 9899:2018, also known as C17 as the final draft was published in 2018. Before C11, there was C99. The C11 final draft is available here.
GCC has experimental support for the latest revision of the C++ standard, which was published in 2020. C++20 features are available since GCC 8. To enable C++20 support, add the command-line parameter -std=c++20 (use -std=c++2a in GCC 9 and earlier) to your g++ command line.
GCC has had complete support for C++17 language features since version 8. Clang 5 and later supports all C++17 language features.
At least in the current Draft of the C++ Standard there is written that its normative documents include
— ISO/IEC 9899:1999, Programming languages — C
— ISO/IEC 9899:1999/Cor.1:2001(E), Programming languages — C, Technical Corrigendum 1
— ISO/IEC 9899:1999/Cor.2:2004(E), Programming languages — C, Technical Corrigendum 2
— ISO/IEC 9899:1999/Cor.3:2007(E), Programming languages — C, Technical Corrigendum 3
So it looks like the new C++ Standard will be based on C99.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With