https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85873

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 30 17:33:06 2018
New Revision: 260969

URL: https://gcc.gnu.org/viewcvs?rev=260969&root=gcc&view=rev
Log:
        PR c++/85873 - constant initializer_list array not in .rodata.

        * tree.c (build_target_expr): Set TREE_READONLY.
        * call.c (set_up_extended_ref_temp): Set TREE_READONLY.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/array-temp1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/tree.c

Reply via email to