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.