[Bug c++/82213] Please warn about const rvalue reference parameters [void func(const T&&);]

2017-12-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82213

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |paolo.carlini at oracle 
dot com

--- Comment #2 from Paolo Carlini  ---
Looking into it.

[Bug c++/82213] Please warn about const rvalue reference parameters [void func(const T&&);]

2017-09-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82213

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||diagnostic
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-09-14
 Ever confirmed|0   |1

--- Comment #1 from Jonathan Wakely  ---
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.