https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99211
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- We have it even in gcc sources, though ifdefed so it won't trigger with recent-ish gcc: libstdc++-v3/include/ext/throw_allocator.h: __typeof__(&std::sprintf) __builtin_sprintf = &std::sprintf; I think this was PR32455, I believe the patch has never been applied, but I don't really remember all the details about it.