https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think this is a bug as foundmental types does not have an associated namespace associated with it. So the overload set is only what is declared before the template.