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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:d7b2e9bd1a3cdb502bfd837d56ef809817ef0db7

commit r11-8974-gd7b2e9bd1a3cdb502bfd837d56ef809817ef0db7
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Aug 31 09:46:41 2021 +0100

    c++: Fix docs on assignment of virtual bases [PR60318]

    The description of behaviour is incorrect, the virtual base gets
    assigned before entering the bodies of A::operator= and B::operator=,
    not after.

    The example is also ill-formed (passing a string literal to char*) and
    undefined (missing return from Base::operator=).

    Signed-off-by: Jonathan Wakely <jwak...@redhat.com>

    gcc/ChangeLog:

            PR c++/60318
            * doc/trouble.texi (Copy Assignment): Fix description of
            behaviour and fix code in example.

    (cherry picked from commit 3c64582372cf445eabc4f9e99def7e33fb0270ee)

Reply via email to