http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47150
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:26:37 UTC --- Author: jakub Date: Sun Jan 16 20:26:27 2011 New Revision: 168869 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168869 Log: Backport from mainline 2011-01-06 Jakub Jelinek <ja...@redhat.com> PR c/47150 * c-convert.c (convert): When converting a complex expression other than COMPLEX_EXPR to a different complex type, ensure c_save_expr is called instead of save_expr, unless in_late_binary_op. * c-typeck.c (convert_for_assignment): Set in_late_binary_op also when converting COMPLEX_TYPE. * gcc.c-torture/compile/pr47150.c: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr47150.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/c-convert.c branches/gcc-4_5-branch/gcc/c-typeck.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog