https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12245
--- Comment #83 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Carlos Galvez from comment #82) > Hi, > > This bug is still present in GCC 11.3.0. My use case is using large > std::arrays. NOTE: the problem immediately goes away if the arrays are not > initialized, but naturally we want to always initialize our variables to > prevent accessing uninitialized data: > > -std::array<Foo, 1000000> data{}; > +std::array<Foo, 1000000> data; Note the C++ issue listed in comment #82 is a different issue and I think was improved for GCC 13.