https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77691
--- Comment #34 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #33) > The correct fix is to adjust the value of __STDCPP_DEFAULT_NEW_ALIGNMENT__ > on targets where malloc doesn't agree with GCC's alignof(max_align_t). That only helps for C++17 and later though :-( The <experimental/memory_resource> header is defined for C++14.