[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread matthijsvanduin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 Matthijs van Duin changed: What|Removed |Added CC||matthijsvanduin at gmail dot com -

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 --- Comment #3 from Jonathan Wakely --- And maybe another one to link to PR 101926, but I'll let pinskia decide that.

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 --- Comment #1 from Jonathan Wakely --- This has been discussed before but I can't find the bug report now. The non-elided memcpy happens for trivially copyable types, and GCC doesn't try to elide those.