[Bug c/47150] [4.5/4.6 Regression] ICE in gimplify_expr at gimplify.c
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 6 11:07:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47150
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-06 10:37:09 UTC ---
Author: jakub
Date: Thu Jan 6 10:37:02 2011
New Revision: 168537
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168537
Log:
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:
trunk/gcc/testsuite/gcc.c-torture/compile/pr47150.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-convert.c
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list