aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-06-13 07:29:34 -0400
committerJason Merrill <jason@redhat.com>2023-06-13 08:09:48 -0400
commit47c3144c2f6b001031b1fbfa301bb987075408a7 (patch)
treebf09f778ec639bfe20ff6324059fafcba0834c42 /gcc/expr.cc
parent1d4d302acd915a81f4b7d7a6db44999531f2fd31 (diff)
downloadgcc-47c3144c2f6b001031b1fbfa301bb987075408a7.zip
gcc-47c3144c2f6b001031b1fbfa301bb987075408a7.tar.gz
gcc-47c3144c2f6b001031b1fbfa301bb987075408a7.tar.bz2
c++: mutable temps in rodata
If the type of a temporary has mutable members, we can't set TREE_READONLY on the VAR_DECL; this is parallel to the check in cp_apply_type_quals_to_decl. gcc/cp/ChangeLog: * tree.cc (build_target_expr): Check TYPE_HAS_MUTABLE_P. gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/initlist-opt6.C: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions