I have seen such a problem when reviewing D43341.
https://godbolt.org/g/aJYcaa
#include <utility>
struct S {};
void test(S a) {
std::move(a);
}Since std::move() is not marked with nodiscard attribute in the standard
(should it be? how complicated would it be to write such a proposal?),
nothing diagnoses such code. But i really don't see why one would intentionally write that.
You have either forgot to assign/pass the result, or you wanted to cast to void.
Stage-2 self-hosting is green, no preparatory changes needed!