https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119899
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The question should std::ref be in the std namespace and participate in ADL with std namespace. I think so. The "workaround" works as then invoke becomes qualified and ADL no longer comes into play.