Index: test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp =================================================================== --- test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp +++ test/std/input.output/iostream.format/input.streams/istream.rvalue/rvalue.pass.cpp @@ -65,7 +65,7 @@ { // test perfect forwarding assert(called == false); std::istringstream ss; - auto& out = (std::move(ss) >> A{}); + auto&& out = (std::move(ss) >> A{}); assert(&out == &ss); assert(called); }