https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87436
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 10:20:57 2019 New Revision: 267708 URL: https://gcc.gnu.org/viewcvs?rev=267708&root=gcc&view=rev Log: Backported from mainline 2018-12-14 Jakub Jelinek <ja...@redhat.com> PR c++/82294 PR c++/87436 * init.c (build_vec_init): Change num_initialized_elts type from int to HOST_WIDE_INT. Build a RANGE_EXPR if e needs to be repeated more than once. Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/init.c