https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77562
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is a dup of this bug somewhere already. Basically the front-end decides it is going to "unroll" the loop for the constructors.