[Bug c++/85873] [8/9 regression] GCC omits array constant in .rodata causing a segmentation fault.
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 1 22:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 1 22:48:58 2018
New Revision: 261091
URL: https://gcc.gnu.org/viewcvs?rev=261091&root=gcc&view=rev
Log:
PR c++/85873 - constant initializer_list array not in .rodata.
* call.c (convert_like_real): Treat the backing array for an
initializer_list like a C99 compound literal.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/tree-ssa/array-temp1.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/call.c
More information about the Gcc-bugs
mailing list