https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92927
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- As these functions were already inline the right fix is just to restore that for C++11. If that wasn't the case, an alternative fix would be to explicitly instantiate them in the library by adding this to src/c++11/string-inst.o: #ifndef __OPTIMIZE__ template void __alloc_on_swap(allocator<C>&, allocator<C>&); #endif