]> gcc.gnu.org Git - gcc.git/commitdiff
cvt.c (build_up_reference): A TARGET_EXPR has side effects.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 19 Jan 1998 13:21:59 +0000 (13:21 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 19 Jan 1998 13:21:59 +0000 (08:21 -0500)
* cvt.c (build_up_reference): A TARGET_EXPR has side effects.
14507

From-SVN: r17422

gcc/cp/ChangeLog
gcc/cp/cvt.c

index 27b735a400ed6a9b5c7180701f298c87ab43a665..e6e78f6fd33d49ac1566779e1d020d0875473b85 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jan 19 13:18:51 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * cvt.c (build_up_reference): A TARGET_EXPR has side effects.
+
 Fri Jan 16 11:40:50 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>
 
         * error.c (dump_decl): For enum tags, output the tag, not its value.
index ad47a84b7774ff8730b76802c18f4b49dc4e7933..687ac5cf4828c98223ef5a4cafdae381ec3ad59d 100644 (file)
@@ -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
This page took 0.085205 seconds and 5 git commands to generate.