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~
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.
GCC supports the original ISO C++ standard published in 1998, and the 2011, 2014, 2017 and mostly 2020 revisions.
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.
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.
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