https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112521
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Kelley from comment #7) > Thank you for looking into it! By the way the workaround is to use -fno-tree-sra to disable SRA. But that might cause other missed optimizations.