This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/36408


On 11/27/2009 04:45 PM, Dodji Seketeli wrote:
@@ -4636,6 +4636,8 @@ fold_non_dependent_expr (tree expr)
  				    /*in_decl=*/NULL_TREE,
  				    /*function_p=*/false,
  				    /*integral_constant_expression_p=*/true);
+      if (empty_expr_stmt_p (expr))
+	expr = void_zero_node;

Seems like this belongs in the tsubst_copy_and_build STMT_EXPR handling.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]