libstdc++: Fix circular dependency for bitmap_allocator [PR103381]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Nov 2021 12:28:22 +0000 (12:28 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 23 Nov 2021 12:30:57 +0000 (12:30 +0000)
commit5459fa132a99e6037e5ccf1b49d617677a584ff8
tree62028d487c3921a90117e60b2f7b58991c43841e
parentd3f22853d18195b6ef4c9e26298befa55402eb4a
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>.
libstdc++-v3/include/ext/bitmap_allocator.h