https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92462
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Have you tested gcc 7.5.0 that was just released? How about gcc 8.x? Have you tried that. There has been aliasing bugs in gcc before and this might already been fixed.