https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118386
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The code is undefined. The lifetime of a temporary is at the end of the statement.
pinskia at gcc dot gnu.org via Gcc-bugs Thu, 09 Jan 2025 00:59:15 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118386
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The code is undefined. The lifetime of a temporary is at the end of the statement.