Search code examples
c++cgccg++standards

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~


Solution

  • 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.

    Experimental 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.

    In any case, these pages summarize which dialects and features of C++ are supported by GCC as well as their implementation status: