]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* init.c (build_new): Copy size to the saveable obstack.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 26 Nov 1997 06:20:36 +0000 (06:20 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 26 Nov 1997 06:20:36 +0000 (23:20 -0700)
From-SVN: r16721

gcc/cp/ChangeLog
gcc/cp/init.c

index 4fc00c2654f7d8d92a64871d21b69706feb4e881..91a82a0386ac322e6c3f897bca60b5b281377773 100644 (file)
@@ -1,3 +1,7 @@
+Tue Nov 25 11:28:21 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * init.c (build_new): Copy size to the saveable obstack.
+
 Mon Nov 24 12:15:55 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * init.c (build_new): Stick a CLEANUP_POINT_EXPR inside the
index 57eb8a3d1da8588b9ee67e5953f2db5df27ec358..186b6c3edf691e37c94374a9f82090c201735984 100644 (file)
@@ -2736,6 +2736,9 @@ build_new (placement, decl, init, use_global_new)
          if (placement)
            flags |= LOOKUP_SPECULATIVELY;
 
+         /* Copy size to the saveable obstack.  */
+         size = copy_node (size);
+
          cleanup = build_op_delete_call (dcode, alloc_expr, size, flags);
 
          resume_momentary (yes);