https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111773
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think both of these are valid things to do according to the standard and the requirements of operator new.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 11 Oct 2023 09:05:44 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111773
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think both of these are valid things to do according to the standard and the requirements of operator new.