[Bug c++/59659] large zero-initialized std::array compile time excessive

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 9 16:25:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59659

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 31785
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31785&action=edit
patch for the array initialization

Untested patch for the array initialization - if there are several (patch uses
10, could be say a param) consecutive same elements in the ctor, we can just
use a loop instead, and let it to the compiler to decide if it will want to
unroll it or not.  I guess the initializer_list would need similar treatment.



More information about the Gcc-bugs mailing list