https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84808

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar 12 23:40:20 2018
New Revision: 258471

URL: https://gcc.gnu.org/viewcvs?rev=258471&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-84808.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to