https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105327
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Switching around the order to do: g.p_ = 0; P p (new (v) T); Fixes the warning and I think correctly.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 24 Dec 2022 16:58:54 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105327
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Switching around the order to do: g.p_ = 0; P p (new (v) T); Fixes the warning and I think correctly.