https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92524
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 17:24:30 2019 New Revision: 279659 URL: https://gcc.gnu.org/viewcvs?rev=279659&root=gcc&view=rev Log: Backported from mainline 2019-11-27 Jakub Jelinek <ja...@redhat.com> PR c++/92524 * tree.c (replace_placeholders_r): Don't walk constructor elts with RANGE_EXPR indexes. * g++.dg/cpp0x/pr92524.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/pr92524.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/tree.c branches/gcc-9-branch/gcc/testsuite/ChangeLog