https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #15 from Marek Polacek <mpolacek at gcc dot gnu.org> --- The original testcase got fixed by: commit 8da6002afc1d531ed086dd29ebf303d4235cfdfa Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Mar 16 08:05:06 2018 +0000 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/cpp2a/desig7.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258585 138bc75d-0d04-0410-961f-82ee72b054a4 Comment 14 also compiles now.