aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-23 12:28:22 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-23 12:30:57 +0000
commit5459fa132a99e6037e5ccf1b49d617677a584ff8 (patch)
tree62028d487c3921a90117e60b2f7b58991c43841e
parentd3f22853d18195b6ef4c9e26298befa55402eb4a (diff)
downloadgcc-5459fa132a99e6037e5ccf1b49d617677a584ff8.zip
gcc-5459fa132a99e6037e5ccf1b49d617677a584ff8.tar.gz
gcc-5459fa132a99e6037e5ccf1b49d617677a584ff8.tar.bz2
libstdc++: Fix circular dependency for bitmap_allocator [PR103381]
<ext/bitmap_allocator.h> includes <function>, and since C++17 that includes <unordered_map>. If std::allocator is defined in terms of __gnu_cxx::bitmap_allocator then you get a circular reference and bootstrap fails when compiling src/c++17/*.cc. libstdc++-v3/ChangeLog: PR libstdc++/103381 * include/ext/bitmap_allocator.h: Include <bits/stl_function.h> instead of <functional>.
-rw-r--r--libstdc++-v3/include/ext/bitmap_allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/bitmap_allocator.h b/libstdc++-v3/include/ext/bitmap_allocator.h
index cc80593..0444deb 100644
--- a/libstdc++-v3/include/ext/bitmap_allocator.h
+++ b/libstdc++-v3/include/ext/bitmap_allocator.h
@@ -31,7 +31,7 @@
#include <utility> // For std::pair.
#include <bits/functexcept.h> // For __throw_bad_alloc().
-#include <functional> // For greater_equal, and less_equal.
+#include <bits/stl_function.h> // For greater_equal, and less_equal.
#include <new> // For operator new.
#include <debug/debug.h> // _GLIBCXX_DEBUG_ASSERT
#include <ext/concurrence.h>