[PATCH v5 7/7] libstdc++: Set __cpp_lib_submdspan to 202411.
Tomasz Kaminski
tkaminsk@redhat.com
Tue Dec 9 09:59:04 GMT 2025
On Mon, Dec 8, 2025 at 9:21 PM Luc Grosheintz <luc.grosheintz@gmail.com>
wrote:
> The submdspan feature is complete and this commit sets the feature
> testing macros accordingly. Also makes the feature testing macro
> submdspan depend on constant_wrapper.
>
> Also changes the value of the internal feature testing macro for padded
> layouts to 202403.
>
> libstdc++-v3/ChangeLog:
>
> * include/bits/version.def (submdspan): Set to 202411 add
> dependency.
> * include/bits/version.h: Regenerate.
>
> Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
> ---
>
LGTM.
> libstdc++-v3/include/bits/version.def | 6 +++---
> libstdc++-v3/include/bits/version.h | 7 ++++---
> 2 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/libstdc++-v3/include/bits/version.def
> b/libstdc++-v3/include/bits/version.def
> index d20e08519ca..048568f2f43 100644
> --- a/libstdc++-v3/include/bits/version.def
> +++ b/libstdc++-v3/include/bits/version.def
> @@ -1090,17 +1090,17 @@ ftms = {
> name = padded_layouts;
> no_stdname = true; // internal
> values = {
> - v = 1;
> + v = 202403;
> cxxmin = 26;
> };
> };
>
> ftms = {
> name = submdspan;
> - no_stdname = true; // TODO: change once complete
> values = {
> - v = 1;
> + v = 202411;
> cxxmin = 26;
> + extra_cond = "__glibcxx_constant_wrapper >= 202506L";
> };
> };
>
> diff --git a/libstdc++-v3/include/bits/version.h
> b/libstdc++-v3/include/bits/version.h
> index c75368d44c2..cfbccefa284 100644
> --- a/libstdc++-v3/include/bits/version.h
> +++ b/libstdc++-v3/include/bits/version.h
> @@ -1214,7 +1214,7 @@
>
> #if !defined(__cpp_lib_padded_layouts)
> # if (__cplusplus > 202302L)
> -# define __glibcxx_padded_layouts 1L
> +# define __glibcxx_padded_layouts 202403L
> # if defined(__glibcxx_want_all) ||
> defined(__glibcxx_want_padded_layouts)
> # endif
> # endif
> @@ -1222,9 +1222,10 @@
> #undef __glibcxx_want_padded_layouts
>
> #if !defined(__cpp_lib_submdspan)
> -# if (__cplusplus > 202302L)
> -# define __glibcxx_submdspan 1L
> +# if (__cplusplus > 202302L) && (__glibcxx_constant_wrapper >= 202506L)
> +# define __glibcxx_submdspan 202411L
> # if defined(__glibcxx_want_all) || defined(__glibcxx_want_submdspan)
> +# define __cpp_lib_submdspan 202411L
> # endif
> # endif
> #endif /* !defined(__cpp_lib_submdspan) */
> --
> 2.52.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251209/35f735b8/attachment.htm>
More information about the Libstdc++
mailing list