diff options
Diffstat (limited to 'gcc/cp/decl.c')
| -rw-r--r-- | gcc/cp/decl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index d9385f5..3853df1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7871,9 +7871,13 @@ emit_local_var (decl) } /* Actually do the initialization. */ - expand_start_target_temps (); + if (stmts_are_full_exprs_p) + expand_start_target_temps (); + expand_decl_init (decl); - expand_end_target_temps (); + + if (stmts_are_full_exprs_p) + expand_end_target_temps (); } /* Finish processing of a declaration; |
