[Bug bootstrap/89980] [9 Regression] bootstrap failed
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 5 19:50:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89980
--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Fri Apr 5 19:49:38 2019
New Revision: 270177
URL: https://gcc.gnu.org/viewcvs?rev=270177&root=gcc&view=rev
Log:
PR bootstrap/89980 - pointer initialization with empty string folded to zero
gcc/cp/ChangeLog:
PR bootstrap/89980
* decl.c (reshape_init_array_1): Avoid treating empty strings
as zeros in array initializers.
Use trivial_type_p () instead of TYPE_HAS_TRIVIAL_DFLT().
gcc/testsuite/ChangeLog:
PR bootstrap/89980
* g++.dg/init/array52.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/init/array52.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list