------- Comment #6 from pinskia at gcc dot gnu dot org  2006-01-11 01:08 -------
Here is a reduced testcase, which I found independently:
void link_error(void);

int *t;
int g(int *a)
{
  t = a;
  *a = 2;
}

void f(int *a)
{
  int b;
  b = 1;
  g(&b);
  b = 2;
  *a = 1;  <--- a cannot point to b here.
  if (b == 2)
    link_error();
}

int main(void)
{
  int t;
  f(&t);
  return 0;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-10-30 17:24:24         |2006-01-11 01:08:59
               date|                            |


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


Reply via email to