This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]