This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r168869 - in /branches/gcc-4_5-branch/gcc: Chan...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 16 Jan 2011 20:26:28 -0000
- Subject: r168869 - in /branches/gcc-4_5-branch/gcc: Chan...
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 <jakub@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