------- Comment #3 from reichelt at gcc dot gnu dot org 2008-09-08 23:34 ------- Confirmed. Reduced testcase:
================================== char* foo(char *p, char *q) { const char *r = q + 2; for (; q != r; p++, q++) *p = *q; return p; } void bar(int *p) { char a[2]; foo(a, (char*)&p); baz(a); } static int c; void quus() { bar(&c); } ================================== The regression appeared between 2008-03-21 and 2008-04-19. -- 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 Last reconfirmed|0000-00-00 00:00:00 |2008-09-08 23:34:23 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37382