https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110014
nightstrike <nightstrike at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nightstrike at gmail dot com --- Comment #3 from nightstrike <nightstrike at gmail dot com> --- (In reply to David Malcolm from comment #2) > Thanks for fixing this Tim. > > Keeping open to track backporting this to the gcc 13 branch. Before this gets backported, the testcase should be fixed. It uses an incorrect declaration of realloc, assuming that size_t is long. The standard defines realloc as size_t, so the declaration should use __SIZE_TYPE__ instead. This works, although you could also just include stdlib.h or use __builtin_realloc.