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

2021-09-08 Thread Jason Merrill via Gcc-patches
On 9/8/21 3:52 PM, Jonathan Wakely via Gcc-patches wrote: Ping (and remember to CC a maintainer this time). OK, thanks. On 31/08/21 09:53 +0100, Jonathan Wakely wrote: The description of behaviour is incorrect, the virtual base gets assigned before entering the bodies of A::operator= and

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

2021-09-08 Thread Jonathan Wakely via Gcc-patches
Ping (and remember to CC a maintainer this time). On 31/08/21 09:53 +0100, Jonathan Wakely wrote: 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

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

2021-08-31 Thread Jonathan Wakely via Gcc-patches
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