]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix up submdspan std exports
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Feb 2026 10:37:52 +0000 (11:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Feb 2026 10:37:52 +0000 (11:37 +0100)
commitf037fdeb95bb2b179d79ef634ced1b488560975a
tree7c7b8c2d8fc000105a3ababff9c9cc9c2d7e6b20
parent44c076fb81edb51358491b79aa3ad4156bc5437c
libstdc++: Fix up submdspan std exports

On Mon, Feb 16, 2026 at 01:34:50PM +0100, Tomasz KamiƄski wrote:
> This patch implements LWG 4491, addressing C++26 NB comments.
>
> libstdc++-v3/ChangeLog:
>
>       * include/std/mdspan (std::submdspan_extents): Rename to...
>       (std::subextents): Rename of submdspan_extents.
>       (std::submdspan_canonicalize_slices): Rename to...
>       (std::canonical_slices):

This broke
+FAIL: g++.dg/modules/compile-std1.C -std=c++26 (test for excess errors)
+FAIL: g++.dg/modules/compile-std1.C module-cmi std (gcm.cache/std.gcm)
+FAIL: g++.dg/modules/compile-std1.C module-cmi std.compat (gcm.cache/std.compat.gcm)
on all targets.

The following patch fixes it.

2026-02-17  Jakub Jelinek  <jakub@redhat.com>

* src/c++23/std.cc.in (std::submdspan_canonicalize_slices,
std::submdspan_extents): Remove exports.
(std::canonical_slices, std::subextents): New exports.
libstdc++-v3/src/c++23/std.cc.in