https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92894
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Drat, I think you're right. So once again, deduced return types cause problems. But this also suggests to me that the design of std::projected is a problem, because anywhere it might get used has to be very careful and avoid using idiomatic C++.