https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125262
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-05-11
Ever confirmed|0 |1
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
For union case (which is std::string is) is related to PR 110245.
Note std::string with a larger string is also will be invalid for calling
operator new.
But I think the bigger issue we are not treating this context the same as we
would treat static_assert.
So confirmed.