From: Jason Merrill Date: Wed, 13 Jul 1994 11:13:13 +0000 (+0000) Subject: (grok_reference_init): Always save the initializer of a reference. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c7bdca61729c4ae0a2393564fe24689094abc40;p=gcc.git (grok_reference_init): Always save the initializer of a reference. From-SVN: r7763 --- diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 8797ee151da..0690340c7cc 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5631,10 +5631,7 @@ grok_reference_init (decl, type, init, cleanupp) } } - if (TREE_SIDE_EFFECTS (init)) - DECL_INITIAL (decl) = save_expr (init); - else - DECL_INITIAL (decl) = init; + DECL_INITIAL (decl) = save_expr (init); } else {