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

sbergman at redhat dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 30 12:51:00 GMT 2018


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

--- Comment #3 from Stephan Bergmann <sbergman at redhat dot com> ---
(In reply to Jakub Jelinek from comment #2)
> This changed with r251035 aka PR80452 aka C++ Core issue 1579.
> So, is this really invalid?

but CWG1579 didn't change the "if the type of the first parameter of the
selected constructor is not an rvalue reference to the object’s type (possibly
cv-qualified), overload resolution is performed again, considering the object
as an
lvalue." part


More information about the Gcc-bugs mailing list