https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67466 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Have you figured out what is going on? Or is your code still broken with GCC 5.x? Does it work at -O0?