https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69831
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Works for me on the trunk: GNU C++14 (GCC) version 6.0.0 20160215 (experimental) [trunk revision 233436] (aarch64-unknown-linux-gnu) compiled by GNU C version 6.0.0 20160215 (experimental) [trunk revision 233436], GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1, isl version none