[Bug c++/84874] [6/7/8 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 Mar 16 08:05:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84874
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 16 08:05:06 2018
New Revision: 258585
URL: https://gcc.gnu.org/viewcvs?rev=258585&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp2a/desig7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list