re PR c++/84808 (ICE with constexpr and array)
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Mar 2018 23:40:20 +0000 (00:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Mar 2018 23:40:20 +0000 (00:40 +0100)
commitfe217ba0ee93975a42c5a068156e5a295a5cf844
treef873ee849e8d064841abbd6b90f19a30ef18a998
parent038df1baecf93ad9d17ba7deafb47e99b3e287ad
re PR c++/84808 (ICE with constexpr and array)

PR c++/84808
* constexpr.c (find_array_ctor_elt): Don't use elt reference after
first potential CONSTRUCTOR_ELTS reallocation.  Convert dindex to
sizetype.  Formatting fixes.

* g++.dg/cpp1y/constexpr-84808.C: New test.

From-SVN: r258471
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-84808.C [new file with mode: 0644]