https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108631
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 54384 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54384&action=edit Patch candidate Please check what you get with -fmem-report with the suggested patch.