https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106728
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > g++ -std=c++11 iterate.cpp -o "Z:\28sec\out.exe" Does `g++ -c -std=c++11 iterate.cpp -o "\\machine_name\d\performance testing\t.o" ` work? Also if it is failing like this, it is not a problem with GCC rather than mingw.