From: Jason Merrill Date: Mon, 19 Jan 1998 13:21:59 +0000 (+0000) Subject: cvt.c (build_up_reference): A TARGET_EXPR has side effects. X-Git-Tag: releases/libf2c-0.5.21~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f62aa8f3f11ea1abd38cf2671c76c6fbddaa942f;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 27b735a400ed..e6e78f6fd33d 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 ad47a84b7774..687ac5cf4828 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