https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118594
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes this code is 100% undefined.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 21 Jan 2025 12:00:53 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118594
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes this code is 100% undefined.