diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-08 03:31:25 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-08 03:31:25 +0000 |
commit | db54586c7fee2c767a4c51ca55bb9b1316c20bdd (patch) | |
tree | 266f07a610c2b0f8c5124330bbd1f057eb07f0ff /gcc/cp/tree.c | |
parent | c5fe651b8192c68a5fad8b1c75ee5fbff95c7bd6 (diff) | |
download | gcc-db54586c7fee2c767a4c51ca55bb9b1316c20bdd.tar.gz |
PR c++/55419
* tree.c (build_target_expr): Don't set TREE_CONSTANT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index ca209eb91e3..00fe53f5214 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; } |