[Bug c++/82213] Please warn about const rvalue reference parameters [void func(const T&&);]
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 14 12:01:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82213
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-09-14
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I agree this makes sense, and IMHO it should be included in -Wall. The
exceptional cases where const X&& is used for a good reason could use -Wno-xxx
to suppress the warning.
More information about the Gcc-bugs
mailing list