This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47150] [4.5 Regression] ICE in gimplify_expr at gimplify.c
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Jan 2011 20:28:33 +0000
- Subject: [Bug c/47150] [4.5 Regression] ICE in gimplify_expr at gimplify.c
- Auto-submitted: auto-generated
- References: <bug-47150-4@http.gcc.gnu.org/bugzilla/>
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 <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