From 6c32d62fb1883bb5a9deb8c6751704951acf176c Mon Sep 17 00:00:00 2001 From: merrill Date: Wed, 13 Jul 1994 11:13:13 +0000 Subject: (grok_reference_init): Always save the initializer of a reference. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7763 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/decl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/cp/decl.c') 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 { -- cgit v1.2.1