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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
It seems GCC's warning was consistent with the C++ standard until
wg21.link/p0018r3 which introduced '*this' captures and in turn changed the
standard's wording to be in terms of the current object instead of the 'this'
pointer.

While the warning could use updating, it doesn't seem outright wrong in its
current form since a by-reference capture of the current object is equivalent
to a by-copy capture of the 'this' pointer (and indeed that's how it's
implemented).

Reply via email to