[Bug c++/84874] [6/7 Regression] internal compiler error: in reshape_init_class, at cp/decl.c:5800
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 22 20:46:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84874
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 20:44:39 2018
New Revision: 261926
URL: https://gcc.gnu.org/viewcvs?rev=261926&root=gcc&view=rev
Log:
Backported from mainline
2018-03-16 Jakub Jelinek <jakub@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-7-branch/gcc/testsuite/g++.dg/cpp1z/desig7.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list