diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index e02fa17e403..5cbf808d8ec 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -6468,7 +6468,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup) init = build (INIT_EXPR, type, var, expr); if (at_function_scope_p ()) { - add_decl_stmt (var); + add_decl_expr (var); *cleanup = cxx_maybe_build_cleanup (var); /* We must be careful to destroy the temporary only |