+2006-10-10 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR C++/28450
+ * cp/init.c (build_zero_init): Handle VECTOR_TYPE and
+ COMPLEX_TYPEs.
+
2006-10-09 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/28349
items with static storage duration that are not otherwise
initialized are initialized to zero. */
;
- else if (SCALAR_TYPE_P (type))
+ else if (SCALAR_TYPE_P (type)
+ || TREE_CODE (type) == COMPLEX_TYPE)
init = convert (type, integer_zero_node);
else if (CLASS_TYPE_P (type))
{
CONSTRUCTOR_ELTS (init) = nreverse (inits);
}
+ else if (TREE_CODE (type) == VECTOR_TYPE)
+ init = fold_convert (type, integer_zero_node);
else
gcc_assert (TREE_CODE (type) == REFERENCE_TYPE);
+2006-10-10 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR C++/28450
+ * g++.dg/ext/vector4.C: New test.
+ * g++.dg/ext/complex1.C: New test.
+
2006-10-09 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/28349