------- Comment #2 from reichelt at gcc dot gnu dot org  2006-06-02 22:03 
-------
Confirmed.

Shorter testcase (fails with C or C++ frontend):

=============================================
static int* foo(int *q, int j) { return q + j; }

int* r;

void bar(int *p)
{
  int i;
  for (i=0; i<2; ++i)
    r = i ? foo(p,i-1) : 0;
}
=============================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-02 22:03:44
               date|                            |


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

Reply via email to