From f62aa8f3f11ea1abd38cf2671c76c6fbddaa942f Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 19 Jan 1998 13:21:59 +0000 Subject: cvt.c (build_up_reference): A TARGET_EXPR has side effects. * cvt.c (build_up_reference): A TARGET_EXPR has side effects. 14507 From-SVN: r17422 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/cvt.c | 1 + 2 files changed, 5 insertions(+) (limited to 'gcc') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 27b735a..e6e78f6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Mon Jan 19 13:18:51 1998 Jason Merrill + + * cvt.c (build_up_reference): A TARGET_EXPR has side effects. + Fri Jan 16 11:40:50 1998 Bruno Haible * error.c (dump_decl): For enum tags, output the tag, not its value. diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index ad47a84..687ac5c 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -422,6 +422,7 @@ build_up_reference (type, arg, flags, checkconst) { tree slot = build_decl (VAR_DECL, NULL_TREE, argtype); arg = build (TARGET_EXPR, argtype, slot, arg, NULL_TREE, NULL_TREE); + TREE_SIDE_EFFECTS (arg) = 1; } /* If we had a way to wrap this up, and say, if we ever needed it's -- cgit v1.1