------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-16 
11:41 -------
Confirmed.

The following testcase crashes the mainline compiler (-O -march=pentium4):

=========================================
struct A
{
  struct A* p;
};

int bar(struct A*, struct A*);
int baz();

void foo (int i, struct A* q)
{
  char c, d = 1;

  while (i)
    {
      if (q)
        c = 1;
      if (q->p->p)
        d = 0;
      if (bar (q->p->p, q->p))
        c = 0;
      --i;
    }

  if (c && d && baz ())
    return;
}
=========================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-16 11:41:41
               date|                            |
   Target Milestone|---                         |4.1.0


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

Reply via email to