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

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

https://gcc.gnu.org/g:03b8e26897fbddec10a703cf518280af675e6458

commit r9-9715-g03b8e26897fbddec10a703cf518280af675e6458
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