[ forwarded from http://bugs.debian.org/361441 ] % cat ice.c typedef struct { int array_inputs; } TNLcontext; void f(void *); void _tnl_upgrade_client_data (void *swtnl_context) { f(&((TNLcontext *) swtnl_context)->array_inputs); int is_writeable = 0; int *inputs = &((TNLcontext *) swtnl_context)->array_inputs; f(&is_writeable); *inputs = 0; } % gcc -c -O2 ice.c ice.c: In function '_tnl_upgrade_client_data': ice.c:7: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:1354 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. No problem with 4.1. Falk
Seems to occur quite frequently, here's another test case: struct GdkColor { unsigned long pixel; unsigned short red; }; struct GtkStyle { struct GdkColor bg; }; struct GtkStyle *gtk_style_new (void); void pthreada_create(unsigned long *); void start_synaescope(void) { unsigned long synaescope_thread; struct GtkStyle *style = gtk_style_new(); struct GdkColor *color = &style->bg; color->red = 0; pthreada_create(&synaescope_thread); } Falk
Probably related to PR 26626.
It is a dup, Daniel asked me yesterday to close it as one but I did not get around to it til today. *** This bug has been marked as a duplicate of 26626 ***
(In reply to comment #1) > Seems to occur quite frequently, here's another test case: > Can you file that into a different bug? As it is a different issue. Actually the orginal testcase here was not fixed by the patch which is going to fix PR 26626 either. So reopening.
(In reply to comment #4) > Actually the orginal testcase here was not fixed by the patch which is going to > fix PR 26626 either. > So reopening. Daniel, since you fixed 26626, do you think you could take a look at this one too?
Both of the testcases here were fixed by the patch for PR 27373. *** This bug has been marked as a duplicate of 27373 ***