+2009-06-03 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/40328
+ * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
+
2009-06-03 Andrey Belevantsev <abel@ispras.ru>
* statistics.c (statistics_counter_event): Do not record event
case POINTER_TYPE: case REFERENCE_TYPE:
case REAL_TYPE:
case FIXED_POINT_TYPE:
- return build2 (COMPLEX_EXPR, type,
- fold_convert (TREE_TYPE (type), arg),
- fold_convert (TREE_TYPE (type), integer_zero_node));
+ return fold_build2 (COMPLEX_EXPR, type,
+ fold_convert (TREE_TYPE (type), arg),
+ fold_convert (TREE_TYPE (type),
+ integer_zero_node));
case COMPLEX_TYPE:
{
tree rpart, ipart;
+2009-06-03 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/40328
+ * gcc.dg/torture/pr40328.c: New testcase.
+
2009-06-03 Martin Jambor <mjambor@suse.cz>
* g++.dg/torture/pr40323.C: New file.