This page is a "brief" summary of some of the huge number of improvements in GCC 11. You may also want to check out our Porting to GCC 11 page and the full GCC documentation.
Note: GCC 11 has not been released yet, so this document is a work-in-progress.
-std=gnu++14. Note that C++17 changes to template template parameter matching can be disabled independently of other features with
-save-temps=*, and you expect any file other than the primary output file(s) to be created as a side effect, watch out for improvements and a few surprises. See the patch, particularly its textual description, for more details about the changes.
-gsplit-dwarfno longer enables debug info generation on its own but requires a separate
--enable-cheaders=c_stdis deprecated and will be removed in a future release. It should be possible to use
--enable-cheaders=c_global(the default) with no change in behaviour.
--param tsan-distinguish-volatileto optionally emit instrumentation distinguishing volatile accesses.
--param tsan-instrument-func-entry-exitto optionally control if function entries and exits should be instrumented.
mapclause, and limited support for the
reinterpret_casts in constexpr evaluation are now checked more completely (PR95307).
-Wctad-maybe-unsupported, disabled by default, warns about performing class template argument deduction on a type with no deduction guides.
Copyright (C) Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.