[Bug c++/87530] copy elision in return statement doesn't check for rvalue reference to object type

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 8 09:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87530

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-10-08
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Smells like a variant of PR 87150 to me, but not a regression as it's been
doing the wrong thing since we started treating named lvalues as rvalues in
return statements.

Marek, could you take a look please?


More information about the Gcc-bugs mailing list