https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes this changed in C++23 so auto(X) creates an rvalue of the decayed type of x.
redi at gcc dot gnu.org via Gcc-bugs Sun, 26 Dec 2021 02:02:59 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes this changed in C++23 so auto(X) creates an rvalue of the decayed type of x.