diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-08-21 19:03:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-08-21 19:03:23 +0200 |
commit | af9fc1dd6364fac542ca47b6ddd68866f5aefb50 (patch) | |
tree | ebea38fada90f5475a4dd477437bd6ada79d5ddb /gcc/cp/init.c | |
parent | 2f41c1d60b2435f9feb5105632eacd0b4ec57c28 (diff) | |
download | gcc-af9fc1dd6364fac542ca47b6ddd68866f5aefb50.zip gcc-af9fc1dd6364fac542ca47b6ddd68866f5aefb50.tar.gz gcc-af9fc1dd6364fac542ca47b6ddd68866f5aefb50.tar.bz2 |
init.c (build_new_1): Use get_target_expr instead of save_expr.
* init.c (build_new_1): Use get_target_expr instead of save_expr.
* g++.dg/init/new24.C: New test.
From-SVN: r127668
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 1909319..ce33e42 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1755,7 +1755,7 @@ build_new_1 (tree placement, tree type, tree nelts, tree init, placement_expr = NULL_TREE; else { - placement_expr = save_expr (TREE_VALUE (placement)); + placement_expr = get_target_expr (TREE_VALUE (placement)); placement = tree_cons (NULL_TREE, placement_expr, NULL_TREE); } |