https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think this has been fixed already in GCC 5 (maybe even in 4.9). Can you try GCC 5 and see if it has been fixed?