https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92192
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Building libstdc++ with -flto is not really supported - we apply a fixed symbol export set which isn't tuned for its effects. I remember recent fixes in this area though.