https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119899
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Frederik vom Hofe from comment #0) > This happens with GCC and Clang. So I assume this is a libgcc issue. > MSVC accepts this code. It accepts it, but it calls std::invoke not customNamespace::invoke, so does not do what you think it does. I'm not sure why MSVC does that, it seems like a bug in MSVC.