2005-09-07 Richard Guenther <rguenther@suse.de>
* cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
for EMPTY_CLASS_EXPR.
From-SVN: r103981
+2005-09-07 Richard Guenther <rguenther@suse.de>
+
+ * cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
+ for EMPTY_CLASS_EXPR.
+
2005-09-06 Jakub Jelinek <jakub@redhat.com>
PR c/23075
break;
case EMPTY_CLASS_EXPR:
- /* We create an INTEGER_CST with RECORD_TYPE and value zero. */
- *expr_p = build_int_cst (TREE_TYPE (*expr_p), 0);
+ /* We create an empty CONSTRUCTOR with RECORD_TYPE. */
+ *expr_p = build_constructor (TREE_TYPE (*expr_p), NULL);
ret = GS_OK;
break;