Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On which C standard will C++14 be based?

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?

like image 584
Kerrek SB Avatar asked Dec 07 '13 14:12

Kerrek SB


People also ask

What are the different C standards?

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 the latest C standard?

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.

Does GCC 11 support C++20?

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.

Does GCC 4.8 support C++17?

GCC has had complete support for C++17 language features since version 8. Clang 5 and later supports all C++17 language features.


1 Answers

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.

like image 97
Vlad from Moscow Avatar answered Oct 05 '22 18:10

Vlad from Moscow