[Bug tree-optimization/18746] [4.0 Regression] segfault with cc1 compiled with checking disabled

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Wed Dec 1 01:04:00 GMT 2004


------- Additional Comments From kazu at cs dot umass dot edu  2004-12-01 01:04 -------
Reduced a little more:

extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);

void
foo (int a)
{
  static char buf[30];
  const char *p;

  if (a)
    p = "hello";
  else
    p = "world";

  strcpy (buf, p);
  strcpy (buf, p);
}


-- 


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



More information about the Gcc-bugs mailing list