Many tests do `for (const path& p : test_paths)` where test_paths is an array of strings. To avoid -Wrange-loop-construct warnings the loop variable should be an object, not a reference bound to a temporary. Tested powerpc64le-linux and x86_64-w64-mingw32, pushed to trunk.