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

Reply via email to