https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106728
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try the following: g++ -std=c++11 iterate.cpp S -o "Z:\28sec\out.s" If this works, then you should report it to binutils. Though I suspect it is https://sourceware.org/bugzilla/show_bug.cgi?id=25713 which was only fixed earlier in the year.