aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1994-07-13 11:13:13 +0000
committerJason Merrill <merrill@gnu.org>1994-07-13 11:13:13 +0000
commit4c7bdca61729c4ae0a2393564fe24689094abc40 (patch)
tree7c33344ee6b6172883fe3f94b4ee893563235123 /gcc
parentf55c7d8816b71c87ed8848a3e19d946188aa109d (diff)
downloadgcc-4c7bdca61729c4ae0a2393564fe24689094abc40.zip
gcc-4c7bdca61729c4ae0a2393564fe24689094abc40.tar.gz
gcc-4c7bdca61729c4ae0a2393564fe24689094abc40.tar.bz2
(grok_reference_init): Always save the initializer of a reference.
From-SVN: r7763
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8797ee1..0690340 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
{