------- 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