aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-12-07 22:31:25 -0500
committerJason Merrill <jason@gcc.gnu.org>2012-12-07 22:31:25 -0500
commit4eaee921faac4b20bcc81988ec2b1af4cc087efc (patch)
tree266f07a610c2b0f8c5124330bbd1f057eb07f0ff /gcc/cp/tree.c
parent3da2b176b387f367a02f5299607204ee6b27e359 (diff)
downloadgcc-4eaee921faac4b20bcc81988ec2b1af4cc087efc.zip
gcc-4eaee921faac4b20bcc81988ec2b1af4cc087efc.tar.gz
gcc-4eaee921faac4b20bcc81988ec2b1af4cc087efc.tar.bz2
re PR c++/55419 (ICE in gimplify_init_ctor_preeval, at gimplify.c:3587)
PR c++/55419 * tree.c (build_target_expr): Don't set TREE_CONSTANT. From-SVN: r194317
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index ca209eb..00fe53f 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -329,8 +329,6 @@ build_target_expr (tree decl, tree value, tsubst_flags_t complain)
side-effects, then the optimizer should be able to get rid of
whatever code is generated anyhow. */
TREE_SIDE_EFFECTS (t) = 1;
- if (literal_type_p (type))
- TREE_CONSTANT (t) = TREE_CONSTANT (value);
return t;
}