https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fsanitize=address would have told you you used the address after it went out of scope.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 05 Sep 2022 20:00:51 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106843
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fsanitize=address would have told you you used the address after it went out of scope.