https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97383
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note clang is worse than GCC here: clang with libc++ does: <source>:8:3: error: no matching function for call to object of type 'const __sort' With libstdc++ clang does: <source>:8:3: error: no matching function for call to object of type 'const __sort_fn' So at least GCC displays the full qualified name. clang does not.