]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix <mdspan> export in std module
authorEric Pimentel Aguiar <eric.pimentela@gmail.com>
Fri, 24 Oct 2025 13:41:04 +0000 (09:41 -0400)
committerTomasz Kamiński <tkaminsk@redhat.com>
Fri, 24 Oct 2025 18:06:14 +0000 (20:06 +0200)
When exporting declarations in a namespace with using declarations, the
name must be fully qualified. Recently introduced std::full_extent{,_t},
std:strided_slice, and std::submdspan_mapping_result broke module std
and module std.compat.

libstdc++-v3/ChangeLog:

* src/c++23/std.cc.in (std::strided_slice, std::full_extent_t)
(std::full_extent, std::submdspan_mapping_result): Add std
qualification.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/src/c++23/std.cc.in

index e849307f186a460248049b12b1800bcdfb1d4487..4c11b1bf7114b0d412f785b355c5ad356c07bd06 100644 (file)
@@ -1872,10 +1872,10 @@ export namespace std
 #if __glibcxx_padded_layouts
   using std::layout_left_padded;
   using std::layout_right_padded;
-  using strided_slice;
-  using full_extent_t;
-  using full_extent;
-  using submdspan_mapping_result;
+  using std::strided_slice;
+  using std::full_extent_t;
+  using std::full_extent;
+  using std::submdspan_mapping_result;
 #endif
   // FIXME submdspan_extents, mdsubspan
 }