Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which gcc and g++ version support which standard of c and c++?

For example, which gcc version support c99?

Is there any table or graph to show the standard supported status of gcc and g++?

How gcc and g++ evolved?

Thank you~

like image 864
sam Avatar asked Apr 05 '12 13:04

sam


People also ask

What version of C does GCC support?

GCC supports different dialects of C++, corresponding to the multiple published ISO standards. Which standard it implements can be selected using the -std= command-line option. C++98 − GCC has full support for the 1998 C++ standard as modified in 2003 and renamed to C++03 and some later defect reports. C++11 − GCC 4.8.

Which standard of C language is supported by GCC compiler?

GCC supports the original ISO C++ standard published in 1998, and the 2011, 2014, 2017 and mostly 2020 revisions.

Does GCC 11 support C ++ 17?

C++17 features are available since GCC 5. This mode is the default in GCC 11; it can be explicitly selected with the -std=c++17 command-line flag, or -std=gnu++17 to enable GNU extensions as well.


1 Answers

Very strictly speaking, GCC only supports C89, C++98 and C++03, all for sure since 4.3.

Support for C99 is still incomplete as of yet, but a very large and usable subset has been supported by GCC for a long time.

Experiemental C++11 support started with 4.3 and has been improving ever since; it's already very usable in 4.6.x, and a lot more has been added in 4.7 (though 4.7.0 is a bit unstable).

There is also some C11 support, but many of the changes for C11 require a suitably new C library, which is not so easily replaceable.

like image 117
Kerrek SB Avatar answered Oct 27 '22 02:10

Kerrek SB