https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking,
| |ice-on-valid-code
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-11-09
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
/* Likewise, but allow extra temps of trivial type so that
gimplify_init_ctor_preeval can materialize subobjects of a CONSTRUCTOR
on the rhs of an assignment, as in constexpr-aggr1.C. */
gcc_checking_assert (!TARGET_EXPR_ELIDING_P (*expr_p)
|| !TREE_ADDRESSABLE (TREE_TYPE (*expr_p)));
Confirmed. I don't know if this is a regression or not. But it does not ICE
with release checking.