https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124943
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-04-21
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
cp/typeck2.cc:1377
/* Not a flexible array member. */
int size = TREE_INT_CST_LOW (TYPE_SIZE (type));
size = (size + BITS_PER_UNIT - 1) / BITS_PER_UNIT;
That should be HOST_WIDE_INT instead.