[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 12 20:26:00 GMT 2019


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

--- Comment #21 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #19)
> And now P1155/P1825 removes that text, so in C++20 mode the original
> testcase needs to call the move constructor again.

Actually, it's a DR, so not just C++20 mode.


More information about the Gcc-bugs mailing list