[Bug c++/84593] [6/7/8 Regression] internal compiler error: Segmentation fault (non_type_check())
aoliva at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 6 06:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84593
--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Tue Mar 6 06:24:53 2018
New Revision: 258270
URL: https://gcc.gnu.org/viewcvs?rev=258270&root=gcc&view=rev
Log:
[PR c++/84593] ice on braced init with uninit ref field
If an initializer expr is to be NULL in a ctor initializer list, we
ICE in picflag_from_initializer and elsewhere.
If we're missing an initializer for a reference field, we report the
error, but then build a zero initializer to avoid the ICE.
for gcc/cp/ChangeLog
PR c++/84593
* init.c (build_zero_init_1): Zero-initialize references.
for gcc/testsuite/ChangeLog
PR c++/84593
* g++.dg/cpp1y/pr84593.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr84593.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list