]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix module std export for std::extents
authorJonathan Wakely <jwakely@redhat.com>
Wed, 7 May 2025 10:54:24 +0000 (11:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 7 May 2025 10:54:24 +0000 (11:54 +0100)
libstdc++-v3/ChangeLog:

* src/c++23/std.cc.in: Fix export for std::extents.

libstdc++-v3/src/c++23/std.cc.in

index 0df27cd7e7dadb338243094cee487ca05fb5a6e9..73316d168c948b3df7445185c8ad9e7891e332d6 100644 (file)
@@ -1834,10 +1834,13 @@ export namespace std
 }
 
 // <mdspan>
+#if __glibcxx_mdspan
+export namespace std
 {
   using std::extents;
   // FIXME layout_*, default_accessor and mdspan
 }
+#endif
 
 // 20.2 <memory>
 export namespace std