https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69319
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2016-01-16 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > item->next = (member *) idle_members; I want to bet there is an alias violation in the code. Does this code work at -O0 and -O1 but not at -O2? Try -fno-strict-aliasing.