https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111090
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced to make it obvious what is going on: ``` struct A { A() { buf[0] = 0; } int buf[2]; }; A g() { A a; A b = a; return b; } ```