[Bug libstdc++/92143] std::pmr::polymorphic_allocator<char> throws bad_alloc on macOS
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 24 14:14:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92143
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Oct 24 14:13:48 2019
New Revision: 277400
URL: https://gcc.gnu.org/viewcvs?rev=277400&root=gcc&view=rev
Log:
PR libstdc++/92143 adjust for OS X aligned_alloc behaviour
OS X 10.15 adds aligned_alloc but it has the same restriction as the AIX
version, namely that alignments smaller than sizeof(void*) are not
supported.
Backport from mainline
2019-10-18 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/92143
* libsupc++/new_opa.cc (operator new) [__APPLE__]: Increase alignment
to at least sizeof(void*).
Modified:
branches/gcc-8-branch/libstdc++-v3/ChangeLog
branches/gcc-8-branch/libstdc++-v3/libsupc++/new_opa.cc
More information about the Gcc-bugs
mailing list