https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85118
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Ugh, this again. I've battled with this when working on the implementation of std::bind. I'll try to reduce it to something independent of the library headers.