https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96877
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Right. But I don't understand why you'd ever want decltype(std::declval<T>()) because the result is always going to be T&& so if you know T, then you already know the decltype.