]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Export std::allocation_result in std.cc [PR118030]
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Mar 2026 15:11:14 +0000 (16:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Mar 2026 15:11:14 +0000 (16:11 +0100)
allocation_result has been added in PR118030 P0401 r16-7986 but
not exported in std module.

2026-03-19  Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/118030
* src/c++23/std.cc.in: Add allocation_result.

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

index 75273ce56c5d52287b00afb505edcae6bc5bba2d..5b0e5c4debd20501219e23353ecb37e917661098 100644 (file)
@@ -2055,6 +2055,9 @@ export namespace std
   using std::start_lifetime_as;
   using std::start_lifetime_as_array;
 #endif
+#ifdef __glibcxx_allocate_at_least
+  using std::allocation_result;
+#endif
 }
 
 // 20.4 <memory_resource>