re PR c/47150 (ICE in gimplify_expr at gimplify.c)
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Jan 2011 10:37:02 +0000 (11:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Jan 2011 10:37:02 +0000 (11:37 +0100)
commitdfe776dd95beeff5e8d5bcd53d07f8c62ae69999
treee01fb2e7447c61db75f8096bc82cb4f7c48a43d8
parent4192922c749ba0e0ca94b734ccabca8245520f9d
re PR c/47150 (ICE in gimplify_expr at gimplify.c)

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.

From-SVN: r168537
gcc/ChangeLog
gcc/c-convert.c
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr47150.c [new file with mode: 0644]