diff options
author | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-07-13 11:13:13 +0000 |
---|---|---|
committer | merrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-07-13 11:13:13 +0000 |
commit | 6c32d62fb1883bb5a9deb8c6751704951acf176c (patch) | |
tree | 7c33344ee6b6172883fe3f94b4ee893563235123 /gcc/cp/decl.c | |
parent | f9225c636ea4eb96625d4e39a1d347b8b73076e9 (diff) | |
download | ppe42-gcc-6c32d62fb1883bb5a9deb8c6751704951acf176c.tar.gz ppe42-gcc-6c32d62fb1883bb5a9deb8c6751704951acf176c.zip |
(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
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 { |