OSDN Git Service

PR c++/27371
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Sep 2006 22:47:34 +0000 (22:47 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Sep 2006 22:47:34 +0000 (22:47 +0000)
        * cvt.c (convert_to_void): Enable previous change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116765 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 06e5fec..5467464 100644 (file)
@@ -1,5 +1,8 @@
 2006-09-07  Jason Merrill  <jason@redhat.com>
 
+       PR c++/27371
+       * cvt.c (convert_to_void): Enable previous change.
+
        PR c++/26957
        * method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied
        parms.
index 52b5be4..fea5768 100644 (file)
@@ -897,7 +897,7 @@ convert_to_void (tree expr, const char *implicit)
         we don't use it and don't need to destroy it.  We'll still
         allocate space for it in expand_call or declare_return_variable,
         but we don't need to track it through all the tree phases.  */
-      if (0 && TARGET_EXPR_IMPLICIT_P (expr)
+      if (TARGET_EXPR_IMPLICIT_P (expr)
          && TYPE_HAS_TRIVIAL_DESTRUCTOR (TREE_TYPE (expr)))
        {
          tree init = TARGET_EXPR_INITIAL (expr);