------- Comment #4 from rguenth at gcc dot gnu dot org 2009-06-03 11:31 ------- I am testing the following:
Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 148119) +++ gcc/fold-const.c (working copy) @@ -2643,9 +2643,10 @@ fold_convert (tree type, tree arg) 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; -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2009-06-03 08:52:01 |2009-06-03 11:31:39 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328