On Tue, Nov 25, 2025 at 07:52:41PM +0100, Jakub Jelinek wrote:
> On Tue, Nov 25, 2025 at 11:36:49PM +0530, Jason Merrill wrote:
> > It seems discussion has died down, so I think let's go ahead with this, with
> > an additional note in the standards.texi C++20 section that -std=c++20
> > doesn't yet enable modules.
> 
> So like this (incremental change first, full patch attached)?
> The libcody part isn't needed after the tweaks acked by Nathan.
> 
> -2025-11-15  Jakub Jelinek  <[email protected]>
> +2025-11-25  Jakub Jelinek  <[email protected]>
>  
>  gcc/
>       * doc/invoke.texi (gnu++17): Remove comment about the default.
> -     (c++20): Remove note about experimental support.
> +     (c++20): Remove note about experimental support, except add a note
> +     that modules are still experimental and need to be enabled separately.
>       (gnu++20): Likewise.  Move here comment about the default.
> +     (fcoroutines): Mention it is enabled by default for C++20 and later.
>       * doc/standards.texi: Document that the default for C++ is
>       -std=gnu++20.
>  gcc/c-family/
> @@ -49,13 +51,10 @@ libgomp/
>       instead of v++;.
>       * testsuite/libgomp.c-c++-common/depend-iterator-2.c: Use v = v + 1;
>       instead of v++.
> -libcody/
> -     * Makefile.in (CXXOPTS): Append $(filter -std=%,@CXX@) to make
> -     sure it is compiled with -std=c++11 rather than -std=gnu++20.
> 
> --- gcc/doc/invoke.texi       2025-11-15 12:05:07.040849058 +0100
> +++ gcc/doc/invoke.texi       2025-11-25 19:40:52.096747038 +0100
> @@ -2632,12 +2632,16 @@
>  @item c++20
>  @itemx c++2a
>  The 2020 ISO C++ standard plus amendments.
> +C++20 modules support is still experimental and needs to be
> +enabled with @code{-fmodules} option.

I think this should be @option{-fmodules}.

>  The name @samp{c++2a} is deprecated.
>  
>  @item gnu++20
>  @itemx gnu++2a
>  GNU dialect of @option{-std=c++20}.
>  This is the default for C++ code.
> +C++20 modules support is still experimental and needs to be
> +enabled with @code{-fmodules} option.

Ditto.

Marek

Reply via email to