[Bug libstdc++/92143] std::pmr::polymorphic_allocator<char> throws bad_alloc on macOS

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 18 11:28:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92143

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Oct 18 11:27:31 2019
New Revision: 277151

URL: https://gcc.gnu.org/viewcvs?rev=277151&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.

        PR libstdc++/92143
        * libsupc++/new_opa.cc (operator new) [__APPLE__]: Increase alignment
        to at least sizeof(void*).

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/new_opa.cc


More information about the Gcc-bugs mailing list