r269919 - in /trunk/gcc: cp/ChangeLog cp/typeck...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Mon Mar 25 16:38:00 GMT 2019


Author: mpolacek
Date: Mon Mar 25 16:38:48 2019
New Revision: 269919

URL: https://gcc.gnu.org/viewcvs?rev=269919&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.

	* g++.dg/cpp1z/aggr-base8.C: New test.
	* g++.dg/cpp1z/aggr-base9.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/aggr-base8.C
    trunk/gcc/testsuite/g++.dg/cpp1z/aggr-base9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list