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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:33:40 2018
New Revision: 262077

URL: https://gcc.gnu.org/viewcvs?rev=262077&root=gcc&view=rev
Log:
        Backported from mainline
        2018-03-16  Jakub Jelinek  <ja...@redhat.com>

        PR c++/84874
        * decl.c (reshape_init_class): Don't assert d->cur->index == field
        if d->cur->index is a FIELD_DECL, instead set field to d->cur->index.

        * g++.dg/cpp1z/desig7.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1z/desig7.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/decl.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to