https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79190
--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> --- Looks as if the problem is here: #else // The C library doesn't provide any aligned allocation functions, declare // aligned_alloc and get a link failure if aligned new is used. extern "C" void *aligned_alloc(std::size_t, std::size_t); #endif Possibly, a better solution might be to provide an implementation that aborts.