]> git.ipfire.org Git - thirdparty/gcc.git/commit
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 23:42:30 +0000 (23:42 +0000)
commit0a7a68872b425afb015d499c879e709fdd32616b
tree6fd420975c9b48b23f5bf281ea6c2d8eb6c9c5e1
parent049aa656393299d2ff23f0292c6f49e5057e2909
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>.

(cherry picked from commit 5459fa132a99e6037e5ccf1b49d617677a584ff8)
libstdc++-v3/include/ext/bitmap_allocator.h