https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49974
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=86982 --- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > As pointed out in PR 52901 comment 3, this missing warning is likely to bite > people misusing std::move like so: > > X&& f() > { > X x; > return std::move(x); > } I created PR 86982 for the special cases of std::move and std::forward, as I think they're important. This bug is for the more general case.