[Bug c++/89214] [7/8 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 7 16:26:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89214
--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May 7 16:25:26 2019
New Revision: 270971
URL: https://gcc.gnu.org/viewcvs?rev=270971&root=gcc&view=rev
Log:
PR c++/89214 - ICE when initializing aggregates with bases.
* typeck2.c (digest_init_r): Warn about object slicing instead of
crashing.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/aggr-base8.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/aggr-base9.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/typeck2.c
More information about the Gcc-bugs
mailing list