PR c++/84808
commite99466d6488b303176ebe9a81e8e3b6785f750b0
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2018 23:40:20 +0000 (12 23:40 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2018 23:40:20 +0000 (12 23:40 +0000)
treef873ee849e8d064841abbd6b90f19a30ef18a998
parent630c880a9655f9d1136756b426716b38d80984e9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258471 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-84808.C [new file with mode: 0644]