https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61421
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This seems alias related. Can you make sure you are not violating c/c++ alias rules. Mainly make sure T and typeof(anchor) can alias.