------- Comment #4 from rsandifo at gcc dot gnu dot org  2006-04-25 14:23 
-------
This issue is related to PR22002.  I have a patch.

A slightly-more reduced testcase is:

struct node { struct node *next; int value; };
struct node *current_node, global_list;

void
bar (void)
{
  struct node *node, *next;

  node = current_node;
  next = node->next;
  if (node != &global_list)
    current_node = next;
  else
    {
      node = global_list.next;
      global_list.value = node->value;
      global_list.next = node->next;
    }
  foo (node);
}


-- 

rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-02-02 19:32:25         |2006-04-25 14:23:53
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25514

Reply via email to