https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110728
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Techincally x does not go out of scope until the } so I don't see how this would act any other way.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 18 Jul 2023 14:32:32 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110728
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Techincally x does not go out of scope until the } so I don't see how this would act any other way.