[Bug c++/67906] Missing warning about std::move without effect
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 4 14:59:23 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67906
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I'm going to add a testcase that ensures that we don't warn for
struct X {
X() { }
X(const X&) { }
X(const X&&) { }
};
const X x;
const X y = std::move(x);
but otherwise I don't see any useful extension to our std::move warnings.
More information about the Gcc-bugs
mailing list