backport: re PR c++/92524 (ICE in short program with constexpr and std::array)
commit929d901ead4f859c8e385d91547482445a85066c
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 11:51:28 +0000 (14 12:51 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:44 +0000 (14 16:01 +0100)
treec01a73e12636e9f7e932e1181c29f6ddb23fa728
parent5c265f5f1977f7c935b8b54cfdb23c862f686f20
backport: re PR c++/92524 (ICE in short program with constexpr and std::array)

Backported from mainline
2019-11-27  Jakub Jelinek  <jakub@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.
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr92524.C [new file with mode: 0644]