https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113587
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note GCC treats `#pragma`s in some (maybe most) cases as statements which is the effect you are seeing here.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 24 Jan 2024 09:26:11 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113587
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note GCC treats `#pragma`s in some (maybe most) cases as statements which is the effect you are seeing here.