[Bug c++/98841] wrong ‘operator=’ should return a reference to ‘*this’ [-Weffc++]
o.mandel at menlosystems dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 27 17:46:29 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98841
--- Comment #7 from Olaf Mandel <o.mandel at menlosystems dot com> ---
(In reply to Olaf Mandel from comment #0)
> In the minimal demo used here this only happens for a template member
> function, but in larger code it can also be observed for a plain member
> function: see e.g. https://github.com/jbeder/yaml-cpp/issues/970
>
I have to retract that statement: I cannot reproduce this and the two line
numbers in the larger code in question are very similar: 212 and 221. Maybe I
just confused them?
More information about the Gcc-bugs
mailing list