https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119958
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-04-26 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Got a reduced testcase: ``` extern __thread int f __attribute__((weak)); extern __thread int hh; int h(int); int h1(int*); int g(void) { h1(&hh); if (&f) return (h1(&f)); return 0; } ```