[webkit-dev] Using C++20 in WebKit

Carlos Alberto Lopez Perez clopez at igalia.com
Tue Dec 7 14:38:39 PST 2021

On 06/12/2021 22:36, Yusuke Suzuki via webkit-dev wrote:
> I recently upgraded GCC requirement to 8.3.0 based
> on https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement
> <https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement> (https://trac.webkit.org/changeset/283348/webkit
> <https://trac.webkit.org/changeset/283348/webkit>)
> As a result, we can use some of C++20 features.
> I wonder if we can flip C++20 now. While some of C++20 features cannot
> be used since GCC 8.3.0 does not support, but some of features can be
> used, and it is super useful.

>From the PoV of WebKitGTK I think it is Ok to enable now the building
with C++-20 support and to start using the C++-20 features already
supported by GCC 8.3.0

Check here: https://gcc.gnu.org/projects/cxx-status.html which C++-20
features are supported by GCC 8

Before using them I think it would be a good idea to double-check if
those are also supported by the minimum version of Clang that we want to
And maybe also to check if those are supported by MS Visual C++ ?
I say maybe because I'm not sure if we support this compiler.

More information about the webkit-dev mailing list