summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-18 12:55:04 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-18 12:55:04 +0000
commitface0cb7d0c9e2ca00257926372f57690f0750dd (patch)
tree648c5a079b6d873effc48807fb0fab2d455cdd19 /gcc/cp/pt.c
parent8de4bdf4dafa5b50901ec2f6404fde8751c5e315 (diff)
downloadgcc-face0cb7d0c9e2ca00257926372f57690f0750dd.tar.gz
cp:
PR c++/11957 * cp-tree.h (finish_stmt_expr): Add bool parameter. * init.c (finish_init_stmts): Pass true to finish_stmt_expr. Don't adjust the stmt_expr here. (build_vec_init): Use finish_stmt_expr_expr, convert result to array type. * parser.c (cp_parser_primar_expression): Adjust finish_stmt_expr call. * pt.c (tsubst_copy): Likewise. * semantics.c (finish_stmt_expr): Add parameter. testsuite: PR c++/11957 * g++.dg/warn/noeffect1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e0dfcb78774..083060329d2 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -7343,7 +7343,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
tsubst_expr (STMT_EXPR_STMT (t), args,
complain | tf_stmt_expr_cmpd, in_decl);
- return finish_stmt_expr (stmt_expr);
+ return finish_stmt_expr (stmt_expr, false);
}
return t;